A
andrew.roberts
I know there have been similar threads already on this subject but I
thought I create my own so I could state the particulars of my problem.
We have a W2K (SP4) running ASP.NET v1.1 and the Crystal Reports XI
runtime. This server hosts a number of web reports created using a
mixture of .NET and Crystal with a SQL Server 2000 server in the
background providing the data for the reports via stored procedures.
Now everything is fine for a while until a user tries to access a
report and instead gets an 'Server out of memory' error.
While I believe I have done everything to clear down all resources used
(i.e. calling dispose/ close methods for database objects) it looks
like I still have memory leak. In the Global.asax under the
Application_end method I have coded in Session.Clear and
Session.Abandon method calls to clear out the Session object.
The only thing I dont explicitly dispose of is the Crystal Reports
objects because when the page is refreshed to show the report, it does
so by binding the viewer to the report object stored in the Session
object. If I didnt store the report in the Session object then when the
page reloaded no report would be shown.
Am I doing something fundamentally wrong? Any help would be
appreciated. Thanks.
thought I create my own so I could state the particulars of my problem.
We have a W2K (SP4) running ASP.NET v1.1 and the Crystal Reports XI
runtime. This server hosts a number of web reports created using a
mixture of .NET and Crystal with a SQL Server 2000 server in the
background providing the data for the reports via stored procedures.
Now everything is fine for a while until a user tries to access a
report and instead gets an 'Server out of memory' error.
While I believe I have done everything to clear down all resources used
(i.e. calling dispose/ close methods for database objects) it looks
like I still have memory leak. In the Global.asax under the
Application_end method I have coded in Session.Clear and
Session.Abandon method calls to clear out the Session object.
The only thing I dont explicitly dispose of is the Crystal Reports
objects because when the page is refreshed to show the report, it does
so by binding the viewer to the report object stored in the Session
object. If I didnt store the report in the Session object then when the
page reloaded no report would be shown.
Am I doing something fundamentally wrong? Any help would be
appreciated. Thanks.