Intrinsic-81 CloseOnTerminate

Top  Previous  Next


81: CloseOnTerminate(boolean);


This intrinsic controls the behavior of stand-alone XPL programs when they terminate. By default, when a stand-alone program terminates, the window stays open and the user must close it by clicking on the [X] close button in the upper-right hand corner of the window. This allows the user to see any information that might be left on the screen when the program completed execution.


Calling the ClostOnTerminate intrinsic with an argument of true sets a stand-alone program to terminate as soon as it has finished executing. This is typical behavior of games and the applications.