Hi
I've got quite some interesting problem (I think).
Okay here's my scenario:
I've got a MainFrame containing a Canvas3D and a SimpleUniverse with a
Scenegraph. I've got a Button somewhere when you press on this one
a JDialog pops up containing also a Canvas3D and a SimpleUniverse.
I have all the Shapes in the first SimpleUniverse (the MainFrame) cloned
and hold them in a Vector everytime you press on the Button. The vector is
used as a reference parameter for the JDialog. In this Scenegraph the
shapes are simply added below a BranchGroup which is then attached to the
locale of the SimpleUniverse. I've got a WindowListener attached to the
JDialog and when windowClosing is called I'll detach the BranchGroup from
the SimpleUniverse (it's locale) and remove all the Shapes from the
BranchGroup. So far so good. (Setting the Universe to null and the
BranchGroup also afterwards even calling System.gc() )
But when I press on the button again to open the dialog again I'll get an
Exception.
"javax.media.j3d.IllegalSharingException: No node object may exist in more
than one virtual universe".
It seems somehow the Shape3Ds in my Vector still think they are alive.
I'm using Java3D 1.2.1_02
So how can I set my Shapes on not alive after closing the window without
destroying the shapes?
EOF,
J.D.
--
Realtime Raytracer in JAVA
(http://www.antiflash.net/raytrace)
===========================================================================
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".