« Return to Thread: Threading with SharedObjects

Threading with SharedObjects

by Chris Cowherd :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

 « Return to Thread: Threading with SharedObjects

LightInTheBox - Buy quality products at wholesale price