I first recursively set all appearances to NULL to bypass the bug where the
shape is not freed if it has any shared resources (materials, textures,
etc). I also found that if I compile the branch group I leak memory on
freeing a scene graph.
Dave
> ----------
> From: Youngseog Lee[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Wednesday, October 04, 2000 1:25 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Remove BranchGroup
>
> Hi~
> Whenever I need to remove a branchgroup from locale, I used to write codes
> as below.
>
> ...
> BranchGroup tmpBG;
> for (Enumeration e = hashBG.elements(); e.hasMoreElements();)
> {
> tmpBG = (BranchGroup)e.nextElement();
> tmpBG.detach();
> tmpBG = null;
> }
> ...
>
> But I'm not sure it was removed from memory.
> If you have a better solution, please tell me yours.
>
> =======================
> Youngseog Lee
> S/W Engineer
> Development 3 Team
> GOMID
> [EMAIL PROTECTED]
> =======================
>
===========================================================================
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".