White Morph wrote:

N. Vaidya wrote:



On Wed, 25 Jun 2003 15:06:27 -0700, Kelvin Chung <[EMAIL PROTECTED]> >wrote:







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 for the confirmation for the bug, but I don't agree that it's not so serious, because the BranchGroup can refer to a lot of objects and hence consumes a lot of memory, which is not available for other processing before a new model is loaded again.


As Raj point out after the branchGroup detach you can attach another empty
BranchGroup to force cleanup memory reference by the temp. variable
SetLiveState.

There is a workaround.

Setting SimpleUniverse to null is not appropriate if I want to keep other
BranchGroup or Background or whatever.

---white



- 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