I amhavingbigproblemsofmemorywhenusingCrystalreport.
IloadareportandIassignaDATASET as datasource.
When I close my report the memory is not released even if I use USING, CLOSE, DISPOSE, GC.collect
I'm using Crystal Report v13.0.2000.0 (x64 , Framework 4.0) with visual studio 2013
Using MyReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
...
MyReport.Database.Tables(Mytablename).SetDataSource(MyDataset)
...
End using
MyDataset.clear
MyDataset.dispose
GC.collect
My dataset (MyDataset) contains a lot of data and takes about 100Mo in memory.
the line "MyReport.Database.Tables(Mytablename).SetDataSource(MyDataset)" add also 100Mo.
Memory used by dataset and report (200Mo) is never released until I quit my application.
If I comment the line "MyReport.Database.Tables(Mytablename).SetDataSource(MyDataset)", the memory used by dataset is correctly released after mydataset.dispose (but my report have no data).
Any solution ?
(excuse me for my English)