468,256 Members | 1,458 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,256 developers. It's quick & easy.

Mem leak using Crystal Reports

I'm trying to export a Crystal Report to a .pdf using the following code
cr = New CrystalReport()
cr.FileName = OutputFilename
cr.report = rpt
cr.ds = ds2
cr.ExportType =
CrystalDecisions.Shared.ExportFormatType.PortableD ocFormat

This code is in a loop that exports many reports. The computer eventually
runs out of memory. If I remove the line cr.Export( ), memory usage is
stable. I call the Dispose( ) method for any object that has one, and set
all references to "Nothing" after cr.Export( ). I have even explicitly
called GC.Collect( ), but have been unable to free the memory. Can anyone
point me in the right direction?

Thanks in advance,
Tom Costanza
Mar 31 '06 #1
0 886

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by rAGHU | last post: by
13 posts views Thread by kristoff plasun | last post: by
7 posts views Thread by Xing | last post: by
1 post views Thread by Don Wash | last post: by
2 posts views Thread by RaptorsFan | last post: by
reply views Thread by Bryan | last post: by
reply views Thread by Doug Odegaard | last post: by
22 posts views Thread by Peter | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.