Re: [IronPython] Stop script execution/unload script

2009-01-19 Thread Dino Viehland
Behalf Of Curt Hagenlocher Sent: Monday, January 19, 2009 6:22 AM To: Discussion of IronPython Subject: Re: [IronPython] Stop script execution/unload script Your intuition that you're running a kind of script that can be stopped is leading you astray. :) When you program in IronPython, it&#

Re: [IronPython] Stop script execution/unload script

2009-01-19 Thread Curt Hagenlocher
Your intuition that you're running a kind of script that can be stopped is leading you astray. :) When you program in IronPython, it's very much like programming in C# -- the objects you create will stay alive until they are garbage collected or the program ends. So to unhook the delegate from th

[IronPython] Stop script execution/unload script

2009-01-19 Thread TommyN
Hi, I've been testing using IronPython as an embedded script language in a small C# application. I have added some code to a winform buttons Click event with code like this: def hello(s, e): MessageBox.Show('Clicked ' + s.Name) Button1.Click += hello; This works fine, but the problem is that