Page 1 of 1
Assembly question
Posted: Sat Sep 01, 2007 4:38 am
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
Assembly question
Posted: Sat Sep 01, 2007 11:50 pm
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.
Assembly question
Posted: Sun Sep 02, 2007 3:48 am
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
Assembly question
Posted: Tue Sep 04, 2007 2:42 am
by Edward
The report will be loaded in the memory only once.
Thank you.