Memory not freed after termination of external application
Remo KottonauTo test a DLL we are running a second test application outside of SAP B1. Every rerun of this application increases the memory used by SAP Business One.exe.
First we thought it is because some objects are not disposed properly. So we ran the [url="http://forum.coresystems.ch/index.php?/topic/5109-sample-projects-coresuite-framework-visual-studio-projects/"]COR_StatusBar[/url] sample application which uses the SwissAddonFramework library as well. Same behaviour - memory is filled but not freed after the application is terminated.
Is there a possibility to free this memory without restarting SAP B1?
How did you solve this??
Just call method disconnect in the end:
this.company = SwissAddonFramework.B1Connector.GetB1Connector().Company; // call once only
// ... some code
this.company.Disconnect(); // disconnect and free memory