I was getting this error message and I was using a Queue object to queue some jobs and block everything until all threads are done with:
the_queue.join()
Well, in my particular case, I was getting these error messages the work was not done in worker threads:
Unhandled exception in thread started by
Error in sys.excepthook:
Original exception was:
So what I did was this:
threads = [] for i in range(0, max_threads): thread = Worker() thread.start() threads.append(thread) # And then... for thread in threads: thread.join()
And this fixed my issue, this will make sense to people with this problem
Hamid Alipour is a partner in Codehead, LLP with his wife, Tess. Hamid speaks 12 markup and programming languages [Yes, 12: PHP, CSS, Ajax, JavaScript, HTML/XHTML, Java, Python, C/C++, ASP, Visual Basic, Scheme and Action Script]; has a penchant for solving the unsolvable; an affinity for clean, hand-written code and is a Zend Certified 