GetReportFromAssembly Question

Stimulsoft Reports.NET discussion
Post Reply
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

GetReportFromAssembly Question

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

GetReportFromAssembly Question

Post 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.
Post Reply