Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Michael Foord
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamil Dworakowski Sent: Saturday, November 29, 2008 1:16 PM To: Discussion of IronPython Subject: Re: [IronPython] Event unhooking and IPy2 On Fri, Nov 28, 2008 at 11:39 AM, Michael Foord <[EMAIL PROTECTED]>

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Dino Viehland
ichael Foord > Sent: Tuesday, December 02, 2008 11:49 AM > To: Discussion of IronPython > Subject: Re: [IronPython] Event unhooking and IPy2 > > Marty Nelson wrote: > > We've had probably with memory leaks on Windows Form subscribed menu > > item clicks, just with pl

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Michael Foord
On Behalf Of Kamil Dworakowski Sent: Saturday, November 29, 2008 1:16 PM To: Discussion of IronPython Subject: Re: [IronPython] Event unhooking and IPy2 On Fri, Nov 28, 2008 at 11:39 AM, Michael Foord <[EMAIL PROTECTED]> wrote: Just as a follow up to this - the reason for the hack below is that

Re: [IronPython] Event unhooking and IPy2

2008-12-02 Thread Marty Nelson
owski Sent: Saturday, November 29, 2008 1:16 PM To: Discussion of IronPython Subject: Re: [IronPython] Event unhooking and IPy2 On Fri, Nov 28, 2008 at 11:39 AM, Michael Foord <[EMAIL PROTECTED]> wrote: > Just as a follow up to this - the reason for the hack below is that > subscribing

Re: [IronPython] Event unhooking and IPy2

2008-11-29 Thread Kamil Dworakowski
On Fri, Nov 28, 2008 at 11:39 AM, Michael Foord <[EMAIL PROTECTED]> wrote: > Just as a follow up to this - the reason for the hack below is that > subscribing to events from IronPython is still causing our UI objects (and > their whole object graphs) to not be garbage collected. To be fair, we hav

Re: [IronPython] Event unhooking and IPy2

2008-11-28 Thread Michael Foord
Just as a follow up to this - the reason for the hack below is that subscribing to events from IronPython is still causing our UI objects (and their whole object graphs) to not be garbage collected. This was a brute force way of clearing out subscribed events so that unneeded UI components can

[IronPython] Event unhooking and IPy2

2008-11-28 Thread Glenn Jones
In Resolver One on IronPython 1, we have code to unhook events that uses an object that is equal to everything like this: e = EqualToAll() for _ in range(100): event -= e What we have discovered when we run under IPy2, is that the __eq__ method on EqualToAll is only called when the target of t