White Morph wrote:

Hi,

I have a very simple test program. A button to add an object(Sphere) every
time, another button to delete an object every time. If I deleted all the
objects that I added, I suppose there should no BranchGroup, Sphere,
Material objects left in the memory if there is no memory leak. But in the
snapshot that I took using JProbe, there is still one instance of each
those objects in the memory. The reference graph shows like:
     SimpleUniverser---SetLiveState---ArrayList....BranchGroup
I don't know why there is such a reference graph, and I think I can do
nothing to cut this reference path. Is this a memory leak bug or what?
I welcome your comments and Thanks a lot. ---white

Java3D 1.3.1 OpenGL version is used.



Bug 4884065 - Memory leak in SetLiveState when branchGroup remove


is filed for this.

Actually this is not that serious as the memory will free next time
the same SimpleUniverse is used. Otherwise you can always set
SimpleUniverse to null to force cleanup.

Thanks.

- 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".

Reply via email to