Subj : Re: threading problem in dll??? Help needed badly. To : comp.programming.threads From : Paul Pluzhnikov Date : Thu Jul 07 2005 10:39 pm chuayongquan@hotmail.com writes: > Ok. I have change all the TryEnterCriticalSection to > EnterCriticalSection but still got error. You should also *always* check system functions for errors: if (!EnterCriticalSection(CS)) { assert(false); } Perhaps you neglected to intialize CS properly ... Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. .