Sign in Join
FPDoc Onlineexperiment

TCustomDaemonApplication.CreateDaemon function

Member of TCustomDaemonApplicationpublicIn unit DaemonApp

Create daemon instance.

Declaration

pascal
function CreateDaemon(DaemonDef: TDaemonDef): TCustomDaemon

Arguments

DaemonDef

Daemon definition containing information to create a daemon.

Function result

New TCustomDaemon instance.

Description

CreateDaemon is called whenever a TCustomDaemon instance must be created from a TDaemonDef daemon definition, passed in DaemonDef. It initializes the TCustomDaemon instance, and creates a controller instance of type TDaemonController to control the daemon. Finally, it assigns the created daemon to the Instance property.

Errors

In case of an error, an exception may be raised.

See also

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