Page 1 of 1

Dispose Method

Posted: Mon Mar 29, 2021 8:24 am
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

Re: Dispose Method

Posted: Wed Mar 31, 2021 1:06 pm
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.