Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Swing + NO garbage-collecting
Swing + NO garbage-collecting [message #137318] Mon, 29 September 2003 06:07 Go to next message
Eclipse UserFriend
Hi,

I've written a plugin, which open a swing-frame as preview (no swt
possible) and it doesn`t free the memory, when the frame is disposed
manually. When I disposed the view right after the showing the memory
was released, but not when closing it with a windowevent. This way after
some time it will kill the memory of the system.

greetings
Joachim
Re: Swing + NO garbage-collecting [message #137492 is a reply to message #137318] Mon, 29 September 2003 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

It's hard to tell. Swing, up to now for JFrames, have been notorious for
not being garbage collected. Something within swing seems to hold onto
them. Can you reuse the JFrame instead? That way you won't be
accumulating them.

Rich
Re: Swing + NO garbage-collecting [message #138515 is a reply to message #137318] Wed, 01 October 2003 12:15 Go to previous message
Eclipse UserFriend
Just to be sure: You use JFrame#dispose() method and
have set
JFrame#setDefaultCloseOperation(WindowConstants.DISPOSE_ON_C LOSE), right ?

Genady

Joachim Schoder wrote:
> Hi,
>
> I've written a plugin, which open a swing-frame as preview (no swt
> possible) and it doesn`t free the memory, when the frame is disposed
> manually. When I disposed the view right after the showing the memory
> was released, but not when closing it with a windowevent. This way after
> some time it will kill the memory of the system.
>
> greetings
> Joachim
>
Previous Topic:Using CVS plug-ins programmatically - everything is internal
Next Topic:Change Title for online help window under web browser
Goto Forum:
  


Current Time: Tue Jun 10 19:04:31 EDT 2025

Powered by FUDForum. Page generated in 0.03551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top