Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadWithTask.Create Constructor

Constructor for the object instance.

Pascal
constructor Create(
    ATask: TIdTask = nil; 
    AName: string = ''
); virtual; reintroduce;
Parameters 
Description 
ATask 
Executable task for a client connection to a server. The default value is nil.
 
AName 
Name for the thread. 

Create is the reintroduced constructor for the object instance. Create calls the inherited constructor to create a suspended thread with the name indicated in AName. The thread is created in a suspended state to allow assignment of the Task for the thread prior to execution. 

Create assigns the value in ATask to the task property for the current object instance. 

Use Destroy to free the object instance.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.