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.
Hello, When using offscreen rendering, there are 2 problems with memory when destroying the 3D scene: 1. When invoking DisplayImplJ3D.destroy(), I get a 'IllegalStateException' thrown in Canvas3D.stopRenderer(). Suggested solution: In the VisADCanvasJ3D.stop() method, instead of calling stopRenderer(), the method removeNotify() should be invoked. 2. The UniverseBuilderJ3D.destroy() method is never reach, because the attribute 'component' in VisADCanvasJ3D is null. Suggested solution: Add a attribute 'universe' in DisplayImplJ3D, which has e reference to the universe and is assign in the initialize(..) method. When the DisplayImplJ3D.destroy() method is invoked, call also universe.destroy(); Cheers, Hannes
visad
archives: