RAD Studio (Common)
ContentsIndex
PreviousUpNext
New Thread Object

FileNewOtherDelphi Projects Delphi FilesThread Object 

Use this dialog box to define a thread class that encapsulates a single execution thread in a multi-threaded application.

Item 
Description 
Class Name  
Type the full class name that you want to define. This dialog box does not prepend a T to the supplied class name; type the full class name, such as TMyThread, rather than typing MyThread.  
Named Thread  
If you want to name the thread, check Named Thread and then type a name in the Thread Name field.
Naming the thread class adds a method to your thread class called SetName. When the thread starts running, it calls the SetName method first.
Naming the thread class can make it easier to identify threads in the debugger Thread Status window.  
Thread Name  
Type the thread name you want to use.  

Tip: Clicking OK
creates a new unit that defines a thread class with the name(s) supplied in the dialog. You must then supply the code that executes when the thread is run by writing the Execute method in the new unit.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!