RAD Studio
ContentsIndex
PreviousUpNext
Naming a Thread

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:

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