I recently had a severe memory leak because more listeners were added to a listener list than removed. I solved the problem by adding only WeakReferences and compacting the list in a separate thread. CursorableLinkedList has a similar solution for cursors - except that the cursors are not cleaned up in a separate thread (which is better, now that I'm thinking about it).
So what I suggest is a list where the entries are stored in weak references and auto-cleaned like the cursors in CursorableLinkedList. No more removeListener - which is silly anyways. -- Gregor Zeitlinger [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]