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
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to