Subj : Re: threading problem in dll??? Help needed badly. To : comp.programming.threads From : chuayongquan Date : Thu Jul 07 2005 08:22 pm Ok. I have change all the TryEnterCriticalSection to EnterCriticalSection but still got error. And i forget to tell you guys that the stop function is trigger by user (event) one. and the thread function always running. .