[IronPython] Best way to stop script execution?

Michael Foord fuzzyman at voidspace.org.uk
Thu Mar 19 21:38:42 CET 2009

Kristian wrote:
> We let users execute scripts in our app using the exec command. We
> want to provide a stop button to stop script execution but how is the
> best way to do that? Can a background worker be used for that?

Are the user scripts already running in a thread of their own? If they 
are you can abort the thread (with all the consequences that brings) 
using Thread.Abort.


> Thanks for help!
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


More information about the Ironpython-users mailing list