#1
|
|||
|
|||
Multithreading in Vizard 3.0
I'm currently using Vizard 3.0 and having trouble getting a simple multithreaded application to run. I wrote a script in IDLE using Python 2.3 (the same version as Vizard) and it works as expected. When it is run in Vizard, however, I get the following error:
"Unhandled exception in thread started by Error in sys.excepthook: Original exception was: Unhandled exception in thread started by Error in sys.excepthook: Original exception was: Unhandled exception in thread started by Error in sys.excepthook: Original exception was: Unhandled exception in thread started by Error in sys.excepthook: Original exception was:" The code is pretty simple and, as I said before, works as expected in IDLE. Code:
import thread def countingThread(id, maxVal): global printLock for i in range(maxVal): printLock.acquire() print "Thread ", id, ": ", i printLock.release() global printLock printLock = thread.allocate_lock() for i in range(5): thread.start_new_thread(countingThread, (i, 50)) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizard won't run | wouters | Vizard | 5 | 02-05-2008 11:12 AM |
Fall 2007 release of Vizard R3 | 3 D | Announcements | 0 | 10-15-2007 04:50 PM |
McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 0 | 03-01-2007 08:24 PM |
Matlab and Vizard | brystewa | Vizard | 1 | 09-18-2006 03:11 PM |
wxPython with Vizard | farshizzo | Vizard | 18 | 09-29-2005 08:49 AM |