Skip to content

TDaemon.OnStart

Daemon start event.

Declaration

Source position: daemonapp.pp line 116

published property OnStart: TDaemonOKEvent;

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

Name Description
TDaemon.OnStop Daemon stop event.
TDaemon.OnExecute Daemon execute event.
TDaemon.OnContinue Daemon continue.
ReportStatus Report the current status to the operating system.