Skip to Content
0
Former Member
Nov 18, 2008 at 10:28 AM

Memory trouble in an C# application using CR 2008 reports

48 Views

Hello,

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

CR2008 SP1

Thanks a lot !

Edited by: Jonik Gregory on Nov 18, 2008 3:12 PM