guides:programming:programmers_reference_manual:suppressautodestroy_property_system

SUPPRESSAUTODESTROY property (System)

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.

DevelopmentRuntimeIndexedScaledSynthetic
NoGet/SetNoYesNo

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.

  • guides/programming/programmers_reference_manual/suppressautodestroy_property_system.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1