
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hi Chris,
you are correct, the Hashtable member is not appropriate as
it was not synchronized. Actually since then the listeners member was
changed to a CopyOnWriteArray type so the enumerators will not get messed
up.
I will merge some of the changes into the source code then will let you know when you
can download it
Zoli
Is it safe to use SharedObjects from multiple threads? I don't
see any synchronization inside of SharedObject.
Isn't it possible two
worker threads will attempt to update it and mess it up?
For instance I
get InvalidOperation exceptions (_listeners hashtable has been modified) inside
of SendUpdates() quite frequently because of subscribers coming and
going.
I've tried wrapping my code that accesses SharedObjects in
synchronization primitives but I still get the exceptions so I was wondering if
it was happening internally.
Test your Star IQ
Play now!
_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com