Print Page | Close Window

out of memory exception

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18609
Printed Date: 03 May 2024 at 4:22am


Topic: out of memory exception
Posted By: gsbalaji
Subject: out of memory exception
Date Posted: 16 Jan 2013 at 4:24am
Hi,

We have developed a windows application which uses crystal reports for showing the report and allow user to print the same.

It works fine for 15 - 20 reports and starts throwing "out of memory" exception. User has to logout and login again to the application to work on it again.

Any help would really be appreciated.

--
Balaji GS



Replies:
Posted By: Erigne
Date Posted: 16 Jan 2013 at 8:39am
Hi,
 
do you use xxx.dispose() and/or xxx.close() after having displayed the report?
 
If not, objects are not deleted and memory used is growing each time you invoke your code.
 
Hope this help


-------------
Jérôme


Posted By: gsbalaji
Date Posted: 16 Jan 2013 at 7:09pm
Hi,

We tried both dataadapter.dispose(),  dataadapter.close() and we even tried dataadapter.clear() but nothing helps.

Any other possible solutions?????

regards
Balaji GS


Posted By: Erigne
Date Posted: 17 Jan 2013 at 3:56am
Hi,
 
do you close your report itself?
 
report.close() and/or report.dispose() are usefull too.
 
Regards,


-------------
Jérôme



Print Page | Close Window