RAD Studio |  |

Naming a Thread
See Also
Collapse All

Because it is difficult to tell which thread ID refers to which thread in the Thread Status box, you can name your thread classes. When you are creating a thread class in the Thread Object dialog box, besides entering a class name, also check the Named Thread check box, enter a thread name, and click OK.

Naming the thread class adds a method to your thread class called SetName. When the thread starts running, it calls the SetName method first.

Note: You can name threads in VCL applications only.
You can also:

- Convert an unnamed thread to a named thread.
- Assign separate names to similar threads.

See Also

Executing Thread Objects

Defining Thread Objects

Converting an Unnamed Thread to a Named Thread

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