Dear All,

I've been writing a simple client/server application where a thread
in the client monitors a socket -- when data arrives it is converted
into a Branchgroup and added to the scene graph on the client with
addChild().

4 out of 5 times this works fine, but the other time the new
branchgroup fails to become live (I know this by testing it with
isLive()). This failure occurs as the scene graph as a whole
is being first drawn in the client's canvas3D.

There are other postings at the moment about thread safety, and this
is another version of it (I guess).

I'd like to suggest that the Java3d team add something like
invokeLater() used in Swing. This would allow threads to safely do
updates to the scene graph.

Also it would be nice if a failure of isLive() meant that addChild()
had also failed. Then I could keep trying addChild() inside a
loop until it did work (Currently this hack causes an exception).

- Andrew

-----------------------------------------------------------------------------
Dr. Andrew Davison             E-mail: [EMAIL PROTECTED]
Dept. of Computer Engineering  Fax: +66 74 212895 (then 201 after office hrs)
Prince of Songkla University      Tel: +66 74 211030 x2240 (then x316)
Hat Yai, Songkhla 90112, Thailand  or: +66 74 212895 x316
http://fivedots.coe.psu.ac.th/~ad

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