Oh, I've figured out the first example starts a race condition if the thread has not exited yet. When I called wait() on the thread it worked fine. I have posted a new and better example in a new thread. -- Thanks, Nate Carson