Assembly question

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

Assembly question

Post by EDV Gradl »

When I do this:

Code: Select all

StiReport MyReport = new StiReport();
MyReport.Load("MyFile.mrt");
MyReport.Compile("MyFile.dll");
...
MyReport.Dispose();
and later

Code: Select all

StiReport MyReport = StiReport.GetReportFromAssembly("MyFile.dll",true);
Does the Report take twice as much memory as when only loading it?

Thanks,

Marco
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Assembly question

Post by Vital »

If you are use:

Code: Select all

StiReport MyReport = StiReport.GetReportFromAssembly("MyFile.dll",true);
then assembly "MyFile.dll" will be load in memory only once. File "MyFile.dll" will be locked from removing.


If you are use:

Code: Select all

StiReport MyReport = StiReport.GetReportFromAssembly("MyFile.dll");
then assembly "MyFile.dll" will be load in memory each time when you call this method.
File "MyFile.dll" not locked.

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Assembly question

Post by EDV Gradl »

I alread know that.

But if I first create a report via Compile("Filename.dll") and then load it from GetReportFromAssembly("Filename.dll",true) it the report once or twice into memory?

Thanks,

Marco
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Assembly question

Post by Edward »

The report will be loaded in the memory only once.

Thank you.
Post Reply