Memory leaks

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Memory leaks

Gerd Wagner
Hi all,

I've just finished fixing SQuirreL's memory leaks. It may be now for the
first time that Sessions get garbage collected. The memory panel in the
status bar now tells which Sessions are garbage collected. There are two
things I'd like to hint to:

- If you add a SessionListener to the SessionManager in a Session
dependent context, make sure that the listener is removed when the
Session is closed.

- If you use actions from ActionCollection for example in a popup menu,
be aware that these actions are global. Session dependent references to
them need to be removed when the Session is closed. For example
JPopupMenu.removeAll() must be called.

Gerd




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Squirrel-sql-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Memory leaks

Gerd Wagner
I forgot:

I've seen that garbage collection works cleaner with JDK 1.5.x than with
JDK 1.4.x.

Gerd


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Squirrel-sql-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
Loading...