I am using multitheading in VC++ 5.0. I created a thread.




ThreadFunction()
{

DTL_READ(int x, 1000);
...
...
}




The DTL_READ function is supplied by some other vendor. Due to some problem, it is getting hanged at that function. I want to refresh the Thread. I will be able to know when the thread got hanged using another thread.

Can U suggest me the safest method of restarting the thread.
I strucked up in a major problem. Pls help me at the earliest.



Ravi Sangisetti
Sr.Software Engineer
Contech India Ltd
Gandinagar, India