Is there anything in your program that would introduce a .NET thread 
abort exception or a Python KeyboardInterrupt?

> -----Original Message-----
> From: [email protected] [mailto:users-
> [email protected]] On Behalf Of KATO Kanryu
> Sent: Monday, February 08, 2010 1:01 AM
> To: [email protected]
> Subject: [IronPython] threading.thread sometimes forced termination!
> 
> 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
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to