Page 1 of 1

GetReportFromAssembly Question

Posted: Mon Aug 20, 2007 3:35 am
by EDV Gradl
Hi Team from Stimulsoft,

I don't understand the difference between

StiReport MyReport = StiReport.GetReportFromAssembly("MFile.dll");

and

StiReport MyReport = StiReport.GetReportFromAssembly("MFile.dll", true);


Could you please explain?

Thanks, Marco

GetReportFromAssembly Question

Posted: Tue Aug 21, 2007 1:07 am
by Edward
EDV wrote:StiReport MyReport = StiReport.GetReportFromAssembly("MFile.dll");
In this case when we load report from assembly for 100 times then the file "MFile.dll" will be loaded exactly 100 times in memory. The file "MFile.dll" could be deleted after that because it wasn't locked.
EDV wrote:StiReport MyReport = StiReport.GetReportFromAssembly("MFile.dll", true);
Calling this method results in locking of the file "MFile.dll" but it will be loaded in memory only once even if the loading procedure is called many times. After that the file cannot be deleted until the Application domen is loaded in memory. Only after releasing the domen from memory the file "MFile.dll" could be deleted.

Thank you.