Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to destroy all created objects
how to destroy all created objects [message #72044] Thu, 12 June 2003 10:48 Go to next message
Eclipse UserFriend
Originally posted by: anthony.saucet.freesbee.fr

In my perspective, there are only views.
I create objects to manipulate xml files with DOM.
When finishing with a file, all views are closed. I would like to destroy
all created objects and free memory to manipulate another xml file.

Is there a mean to destroy objects at once when disposing view parts ?

thnks for your help
anthony
Re: how to destroy all created objects [message #72082 is a reply to message #72044] Thu, 12 June 2003 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

It is your responsibility to know what objects need to be disposed of.
There is no automatic way of doing this. Your view will get a dispose()
call, and in there you should do the dispose of all of the objects that
need to be disposed.

Ricj
Re: how to destroy all created objects [message #72730 is a reply to message #72044] Thu, 12 June 2003 17:08 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

anthony wrote:

> In my perspective, there are only views.
> I create objects to manipulate xml files with DOM.
> When finishing with a file, all views are closed. I would like to destroy
> all created objects and free memory to manipulate another xml file.

> Is there a mean to destroy objects at once when disposing view parts ?

> thnks for your help
> anthony


If the objects you are creating are instances of Java objects, they will
be garbage collected when there is no longer a reference to them. You
don't need to destroy them. If the objects you are creating are system
resources (fonts, GCs, etc) you need to dispose of them when you are done.
Previous Topic:org.eclipse.ui.examples.readmetool.ReadmeCreationPage how to find definition of String "SAMPLE_
Next Topic:Multiple Plugin Versions on an Update Site
Goto Forum:
  


Current Time: Wed Apr 30 06:12:34 EDT 2025

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

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

Back to the top