Hi Joachim,

   I've submit bug 4495139
- Node reuse in another Universe after detach will throws IllegalSharingException

for this. It seems that an internal VirtualUniverse reference did not get
reset when Node detach, so next time when it attach to another
VirtualUniverse IllegalSharingException will throw.

Thanks for your bug report.

- Kelvin
--------------
Java 3D Team
Sun Microsystems Inc.


>X-Unix-From: [EMAIL PROTECTED]  Tue Aug 21 05:52:03 2001
>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Date: Tue, 21 Aug 2001 14:51:44 +0200
>From: Joachim Diepstraten <[EMAIL PROTECTED]>
>Subject: [JAVA3D] How can I delive a Shape3D?
>To: [EMAIL PROTECTED]
>
>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".

===========================================================================
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