Sign in Join
FPDoc Onlineexperiment

TDaemon.OnStart property

Member of TDaemonpublishedIn unit DaemonApp

Daemon start event.

Declaration

pascal
property OnStart: TDaemonOKEvent read FOnStart write FOnStart;

Description

OnStart is the event called when the daemon must be started. This event handler should return as quickly as possible. If it must perform lengthy operations, it is best to report the status to the operating system at regular intervals using the ReportStatus method.

If the start of the daemon should do some continuous action, then this action should be performed in a new thread: this thread should then be created and started in the OnExecute event handler, so the event handler can return at once.

See also

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