RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TService.CreateNew Constructor

Instantiates and initializes a TService object.

Pascal
constructor CreateNew(AOwner: TComponent; Dummy: Integer); override;
C++
virtual __fastcall TService(TComponent * AOwner, int Dummy);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!