Replacement for Quit() ?

This forum is meant for questions and discussions about the X# language and tools
User avatar
Chris
Posts: 4899
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Replacement for Quit() ?

Post 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
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Replacement for Quit() ?

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply