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.

Michael

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


--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog


_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to