Vcl.SvcMgr.TService.OnStart
Delphi
property OnStart: TStartEvent read FOnStart write FOnStart;
C++
__property TStartEvent OnStart = {read=FOnStart, write=FOnStart};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.SvcMgr.pas Vcl.SvcMgr.hpp |
Vcl.SvcMgr | TService |
Description
OnStartup occurs when the service first starts up, before the OnExecute event.
This event should be used to initialize the service. For example, if each service request is handled in a separate thread (a good idea if handling the request takes much time) the thread for a request is spawned in an OnStart event handler.