Crystal Report Resources

  • Thread starter Thread starter John H.
  • Start date Start date
J

John H.

Hi all,



My problem is



When running a Windows application that contains a Table.SetDataSource
method, the resources is not release into system after execute
ReportDocument Dispose or Close methods



C# Test Code.



private void View_Report() {

// Set Records to DataTable (Records > 100.000).

DataTable oDataTable = ReadTableRecords();



CrystalDecisions.CrystalReports.Engine.ReportDocument oReport = new
CrystalDecisions.CrystalReports.Engine.ReportDocument();

oReport.Load("TestReport");



CrystalDecisions.CrystalReports.Engine.Table oRepTable =
oReport.Database.Tables[0];

oRepTable.SetDataSource(oDataTable);

// .

// .

// .

oReport.Close();

oReport.Dispose();

oReport = null;



oDataTable.Dispose();

oDataTable = null;

// The Resources not returns to the System.



}
 
Hi,

My problem is the connection. The connection is not closed.

I use the close method and dispose method and the connection continue
open.
 
Back
Top