Vcl.SvcMgr.TServiceApplication.DelayInitialize
Delphi
property DelayInitialize: Boolean read FDelayInitialize write FDelayInitialize;
C++
__property bool DelayInitialize = {read=FDelayInitialize, write=FDelayInitialize, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.SvcMgr.pas Vcl.SvcMgr.hpp |
Vcl.SvcMgr | TServiceApplication |
Description
Specifies whether the Application.Initialize function is called from TService.Main.
Set the value of DelayInitialize to False to cause the Application.Initialize function to be called from TService.Main (after StartServiceCtrlDispatcher had been called). By default, the value of DelayInitialize is already set to False.
Setting the value of DelayInitialize to True causes delayed initialization of the Application object and may affect events. As a consequence, events such as TService.OnCreate occur prior to initialization. Delayed initialization is only recommended if the service application registers a class object with OLE and is intended for use with Windows 2003 Server.