Dispose Method

Stimulsoft Reports.WEB discussion
Post Reply
junixquiaoit
Posts: 38
Joined: Thu Jun 23, 2016 2:03 am

Dispose Method

Post by junixquiaoit »

Hi,

I would like to clarify when we should use Dispose() on StiReport?

On our GetReport Action Controller, we have this:

Code: Select all

   
   StiReport report = new StiReport();
   report.LoadFromString("");
   return StiMvcViewer.GetReportResult(report);
If we don't have Dispose(), can this result to increasing private bytes in IIS?

Thank you
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Dispose Method

Post by Lech Kulikowski »

Hello,

There is no need to call Dispose(), because the report object itself is saved in the server cache and is used to speed up the viewer and designer for subsequent requests.

Thank you.
Post Reply