George Armhold wrote:
Hmmm,

I changed my invokeAndWait to an invokeLater and now I am getting ConcurrentModificationExceptions in the UpdateManager. I love threads. :-)

Can you provide stack traces? I'm surprised to see this as the UpdateManager is supposed to be thread safe.

Is it OK to do things like create elements from the SVG Document outside of the UpdateManager's RunnableQueue? What I'm doing currently is creating my new elements and setting their attributes in the Swing thread, and then adding them to the DOM in the UpdateManager's RunnableQueue. Is this legit?

This is not 100% legit, it will probably work but just as an example of the sorts of things that can cause problems - the Document caches the responses to getElementsByTagName and maintians the list as elements are added/removed (it might do something similar for 'getElementById' in the future). Now these wouldn't effect you because they only apply to elements that are in the document - but right now our document implementation is 100% unthread-safe so I hesitate to say that it is safe or will always stay safe.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to