Unit 'daemonapp' Package
[Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDaemon.OnStart

Daemon start event.

Declaration

Source position: daemonapp.pp line 116

published property TDaemon.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

TDaemon.OnStop

  

Daemon stop event.

TDaemon.OnExecute

  

Daemon execute event.

TDaemon.OnContinue

  

Daemon continue.

ReportStatus

  

Report the current status to the operating system.


Documentation generated on: Nov 25 2024