> I didn't look really close at your example, but here's what I do. It's > pretty simple:
Aha! I have got it working, thanks to reading your sample and trying to see what the differences are. I /think/ my problem was that the CCriticalSection needs to be constructed from within the thread that wants to protect the resource. By constructing one within the worker thread routine itself and locking it, and also constructing a different one (both on the stack) in the routine adding items to the queue, it suddenly works! I can understand this logic a little, since the whole point is that the critical section is protecting the thread from interruption, so of course it must be created in the thread that needs protecting. Thankyou! -- Jason Teagle [EMAIL PROTECTED]
