NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: garbage collection

Hi Vladimir,

> I'm evaluating JProbe 2.8.1, a tool used to check memory heap.
> This tool is able to show me all the objects "still alive" after garbage 
> collection.
> (JProbe allows me to force garbage collection).
> 
> I have a JFrame containing a 3D graphic (VisADCanvasJ3D).
> When the JFrame is closed the visAD objects (those whose name start by 
> "Display") are not garbage collected.
> 
> Is there a way to allow garbage collection by dereferencing objects just
> before closing the window. (something like java.awt.<Container>.removeAll()) ?

Try calling:

  display.destroy();

for each "DisplayImpl display".

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: