Memory not freed after termination of external application

Remo Kottonau

To 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?

Remo Kottonau

solved

Jose Ribeiro

How did you solve this??


Remo Kottonau

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

0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post