When the Presentation Server detects that there are no more visible windows in the application, and if the System Monitor is hidden, then it automatically shuts down the application and exits. Setting this value to TRUE$ prevents this behaviour.
This property is a boolean value.
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
No | Get/Set | No | Yes | No |
Care should be taken when using this property to ensure that there are no hidden windows that prevent the system from shutting down. If you suppress the auto-destroy process then you are responsible for closing down the system cleanly.
// Check if the Presentation Server can auto-destroy itself IsSuppressAutoDestroy = Get_Property( "SYSTEM", "SUPPRESSAUTODESTROY" ) // Stop the Presentation Server from automatically shutting down Call Set_Property( "SYSTEM", "SUPPRESSAUTODESTROY", TRUE$ )
SYSTEM DESTROY method, SYSTEM SHUTDOWN property.