RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServiceThread.Create Constructor

Instantiates and initializes a TServiceThread object.

Pascal
constructor Create(Service: TService);
C++
__fastcall TServiceThread(TService Service);

Applications do not need to call the constructor directly. Instances of TService create the TServiceThread object on startup. The Service parameter is the TService instance for which the TServiceThread is the dedicated thread. 

The constructor sets the FreeOnTerminate property to true and then calls the base class constructor so that the thread object is created with its Suspended property set to false. 

 

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