Sign in Join
FPDoc Onlineexperiment

TDaemon.OnShutDown property

Member of TDaemonpublishedIn unit DaemonApp

Daemon shutdown.

Declaration

pascal
property OnShutDown: TDaemonEvent read FOnShutDown write FOnShutDown;

Description

OnShutDown is the event called when the daemon must be shut down. When the system is being shut down and the daemon does not respond to stop signals, then a shutdown message is sent to the daemon. This event can be used to respond to such a message. The daemon process will simply be stopped after this event.

If a thread was started in the OnExecute, this is the place where the thread's executed should be stopped or the thread freed from memory.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.