Application.exit

Exit cleanly from the application.

Calling exit() will properly unwind the stack and all the destructors will be called. Should be used only from the main application thread though.

class Application
void
exit
(
int status
,
istring msg = null
)

Parameters

status int

status code to return to the OS

msg istring

optional message to show just before exiting

Meta