Vcl.SvcMgr.TService.CreateNew
Delphi
constructor CreateNew(AOwner: TComponent; Dummy: Integer = 0); override;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.SvcMgr.pas | Vcl.SvcMgr | TService |
Description
Instantiates and initializes a TService object.
Call CreateNew to instantiate a service object at runtime. Services added at design time are created automatically. The AOwner parameter specifies the TServiceApplication object that is responsible for ultimately freeing the service. The Dummy parameter is not used. Use CreateNew rather than the Create constructor to instantiate a new service object at runtime. CreateNew does not attempt to stream in an associated DFM file that indicates any components added to the service at design time.