IApplicationExtension.atExit

Function executed at program exit.

This is function is executed always just before the program exits, no matter if Application.exit() was called or not. This function can be useful to do application cleanup that's always needed.

interface IApplicationExtension
void
atExit

Parameters

app IApplication

the application instance that will run

args istring[]

command line arguments used to invoke the application

status int

exit status returned by the application

exception ExitException

exit exception instance, if one was thrown (null otherwise)

Return Value

Type: void

new exit exception to use when the program exits (can be modified by other extension though)

Meta