Constructor for the TIdThread instance.
constructor Create( ACreateSuspended: Boolean = True; ALoop: Boolean = True; AName: string = '' ); virtual;
Create is the constructor for the TIdThread instance. Create calls the inherited constructor to initialize the thread instance.
Create sets the default values in the Options property to include itoDataOwner which indicates the the Data property is managed by the thread instance.
The value itoStopped is also included in Options when the thread is created in a suspended state, as indicated by the value in ACreateSuspended.
When ACreateSuspended contains True, call the Start method in order to start execution of thread. If ACreateSuspended contains False, the thread automatically starts executing upon successful completion of the constructor.
Create allocates the internal critical section member variable used to provide thread-safe access to property values in the thread instance.
For version of VCL prior to VCL Version 6, an exception in the inherited constructor is indicated by ThreadID containing the value 0. This will result in a call to the RaiseLastOSError Windows API function to prevent access to the resources in the descendant class.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.