Re: Will I have memory leaks if a Widget is removed from Panel without call to HandlerRegistration#removeHandler()

2009-08-11 Thread David
Hi, If you remove the widget from the view and you keep no reference to that widget then normally the widget will be garbage collected. You only need to keep the HandlerRegistration and call remove if you want to stop listening to the widget, while the widget is still being used somewhere. Davi

Re: Will I have memory leaks if a Widget is removed from Panel without call to HandlerRegistration#removeHandler()

2009-08-10 Thread Arthur Kalmenson
I think that if you have handlers attached to a widget that gets removed, it won't be garbage collected. There was a discussion about this earlier here. I think if you hang onto the HandlerRegistration, you can remove yourself onUnload(). Regards, -- Arthur Kalmenson On Tue, Aug 4, 2009 at 5:4

Will I have memory leaks if a Widget is removed from Panel without call to HandlerRegistration#removeHandler()

2009-08-04 Thread Justas
There is an application in which a Panel instance is *Handler for widgets, which are added dynamically depending on the result returned by async call. Instances of HandlerRegistration are not maintained by the application (i.e. values returned by #add*Handler() are not stored anywhere). Now lets