[IronPython] threading.thread sometimes forced termination!
KATO Kanryu
k.kanryu at gmail.com
Mon Feb 8 10:01:10 CET 2010
Hi,
I'm developping multithread application with threading.thread class.
But sometimes the thread terminates suddenly without any exeption.
What countermeasure for this problem?
-----------sample code---------------
import threading
class MyThread(threading.Thread):
def __init__(self):
pass
def run(self):
print "begin thread!"
try:
# some codes...
pass
except: # not called this point :(
print "catched something!"
finally:
print "end MyThread"
mythread = MyThread()
mythread.start()
----------console------------------
begin thread!
...
end MyThread
----------console------------------
KATO Kanryu
More information about the Ironpython-users
mailing list