Re: Problem
David Crawshaw <[email protected]> Thu, 10 Apr 2003 19:25:06 +1000
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
On Thursday, April 10, 2003, at 07:06 PM, Charles Goodwin wrote: > Since lib.focusable's static holds an array reference to all the > focusables, > supposing you 'deparented' (read: wanted to dispose) of a focusable, > it will > not get garbage collected because it's still referenced. I think I found this problem once in the past, and couldn't think of an elegant solution. If that immutable traps patch of mine is ok, then we can trap _root. When a null root is passed, we can remove the focusable from the list. And obviously add it back if a new root is passed. That would let focusable clean up after itself without the developer giving it a bib. d _______________________________________________ http://lists.xwt.org/listinfo/dev