Pasi Paasiala wrote:
Hello,
I'm using JDK1.4.1 and Java3D 1.3 OpenGL version and I seem to have a
memory leak that I cannot correct by myself.
It seems that there is a static variable in the class
javax.media.j3d.VirtualUniverse that holds a reference to something that
further refers to the Canvas3D (in our case a subclass called
ImmCanvas). I attach a report of the references for you to study and
tell if there is a way to correct this by myself or is this really a J3D
bug.
The zip file only contains 3 files and no source file.
MemoryLeakReport.html
Retainer.gif
RetainerEnd.gif
To prevent memory leak in SimpleUniverse u, use
u.getView().removeAllCanvas3Ds();
u.setViewingPlatform(null);
u.removeAllLocales();
In applet destroy method, see also bug 4661470.
- Kelvin
---------------
Java 3D Team
Sun Microsystems Inc.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".