The job is to identify the thread called from within the thread, to know which thread :
In main code
TThread * ThreadList[10];
THandle_HandleThread[10];
ThreadLIst[4] = new MyThread(true);
THandle_Handle[4] = MainForm->pBackfillth[x]->Handle;
In the thread
MyThread::Execute()
int thistreadno=-1;
Find the thread no of this the thread, (4 in this case)
thisthreadno= ..........
... Show more