Without any line of code I can't say anything. Maybe you forgot to use unit cthreads?