In standalone application(c++), where Soldiworks session is started and is ended using API SldWorks::ExitApp() . I observed that sldworks.exe process is ended after standalone application is ended. I prefer solidworks session should be ended before standalone application 's exit. To achive this, before ending standalone program, I search "sldworks.exe" process and kill is manually. This way soldiworks session is ended before my program ends. This method I enquired with Solidworks customer care and their suggestion is same. Here is suggetion from Solidworks team
"The only way to clean up SolidWorks before your application exits is with ExitApp then manually killing the process. Unfortunately, here are no plans to change the ExitApp method."
I donot prefer to kill sldworks.exe process because it is corrupting registry of solidworks. I am looking for neat way of exiting Solidworks session in standalone application. I tried using wait and sleep concepts but without sucess!. Does any one have any idea for this issue ?
-thanks
SolidworksApi macros