I write a complete windows form application using CR2008 and my last tests show a memory trouble.
When I create the ReportDocument object by "= new ReportDocument()", the memory increase about 40 MB. It is not possible to release this memory. The .Close(), .Dispose() and GC.Collect() have no effect, even in the Form_Closing section (it works only to release the memory allocate for the .Load(string) method).
So, if I use only once the ReportDocument, my memory program increase definitively 40 MB. On a server for 20 users, it means about 1 GB memory increase if users run application only once.
Does someone have an idea to solve my problem ? How release this memory ?
For information :
C# Framework 3.5
Windows XP SP2 or Windows Server 2003 SP1
Thanks a lot !
Edited by: Jonik Gregory on Nov 18, 2008 3:12 PM