xsharp.eu • Replacement for Quit() ? - Page 2
Page 2 of 2

Replacement for Quit() ?

Posted: Tue Aug 29, 2017 4:45 pm
by Chris
Hi Frank,

I think the difference between VO and x# is in the _Quit() function. Unfortunately I don't know exactly what it does in VO, but in the vulcan runtime it is implemented by calling the CloseMainWindow() method of the current process and this method sends a couple messages to the window to do it. Most probably in VO _Quit() does something little different.

My suggestion is to terminate the app with more control over what is happening exactly, for example by explicitly closing the main window of the app, or terminating the main execution loop if you have control over this etc.

Chris

Replacement for Quit() ?

Posted: Tue Aug 29, 2017 5:46 pm
by robert
Chris, Frank,

If I remember correctly then VO the _Quit function in VO does:
- call Axit on all active objects
- releases the dynamic memory
- releases the static memory
- releases other memory allocated by the runtime
- calls ExitProcess with an exit code
I may have forgotten something <g>.

Robert