I wouldn't mind hearing Sun's engineers talk a bit more about any thread safety pitfalls or issues that might exist. We have a client/server world and our customers log in and we do plenty of dynamic updating. Everything more or less works. Every now and then we have a strange issue but in general Java 3D seems fairly robust and tolerant of us changing things at virtually any time. I've noticed some strange issues (locking up) with shutting down our client. My latest changes seem to have cleared this up but it's still a bit of "voodoo" to me and I don't really understand how I fixed it. From a previous message here it seems that we must stop doing all changes to our scene before executing all the standard "detach, etc" clean up.
- John Wright Starfire Research Andrew Davison wrote: > > 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". =========================================================================== 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".
