Problem
Charles Goodwin <[email protected]> Thu, 10 Apr 2003 10:06:13 +0100
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <308906BE5D07D5119285009027D61C5722F6E4@NTFPS1> |
I've just being playing with focusable, and it's just occured to me... 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. There's no way to tell from within lib.focusable whether or not an instantiation has a parent or not and, in the latter case, drop the reference accordingly. What this means is that when a large XWT app with lots of dynamic box creation/dismissal, it'll eat memory for breakfast because it won't be relinquishing a lot of it's supposedly disposed boxen. _______________________________________________ http://lists.xwt.org/listinfo/dev