Hello I just had to lock the mutex before waiting on the condition... my problem is solved now. Thank you very much for the tip. Daniel __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com