Hello.
mikry wrote:Hello, in Your last oficial version "Stimulsoft Reports.Net 2012.3" is the Interpretation mode marked as "Beta". I can't risk some other error.
This mode needs very much time to become final.
mikry wrote:Why You can't release all alocated sources after Dispose() object? Where is problem? I don't understand. This is standard behavior of all .NET objects.
The report is compiled to assemby. The assembly is loaded to memory and the report instance is created there.
Then please read next article:
http://stimulsoft.helpserve.com/index.p ... ticleid=24
The fact is that .NET Framework cannot unload an assembly from memory. It can be unloaded only together with the application domain, which loaded it. If the assembly (the report) is loaded with a basic application domain, then it is impossible to unload it (only if you close the application).
mikry wrote:What is diferent in paramater "lockFile"? Why the version of function GetReportFromAssembly(Stream assemblyStream) is diferent then GetReportFromAssembly(string assemblyFile, true) ?
Save the report as assembly. Before building of the report its necessary to load from assembly with method StiReport.GetReportFromAssembly.
Method has two variants of the work:
1. StiReport report = StiReport.GetReportFromAssembly("myreport.dll");
Report will is loaded in memory exactly so much once how much will is caused this method,
but at file of the assembly of the report will not be locked.
2. StiReport report = StiReport.GetReportFromAssembly("myreport.dll", true);
Report will is loaded in memory only once even though cause the method over and over again.
At file of the assembly will be locked before closing of application (blocking leaves only after
closing of application). Use of this method does not cause the memory leaks since assembly
of the report is loaded in memory only once.
You can read about it on our forum:
http://forum.stimulsoft.com/viewtopic.php?&t=131
Thank you.