Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Swing + NO garbage-collecting
Swing + NO garbage-collecting [message #137318] Mon, 29 September 2003 10:07 Go to next message
Joachim Schoder is currently offline Joachim SchoderFriend
Messages: 11
Registered: July 2009
Junior Member
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 15: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 16:15 Go to previous message
Genady Beryozkin is currently offline Genady BeryozkinFriend
Messages: 410
Registered: July 2009
Senior Member
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: Fri Aug 16 16:00:15 GMT 2024

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

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

Back to the top