TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Are msnp-sharp objects thread-safe? #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not an issue but a general question.

Are the msnp-sharp objects (eg. Messenger) thread-safe?
Is it possible to have multiple instances of Messenger in the same proces?
If not, how should one go about to safely access individual Messenger
instances?
What about Conversation.Switchboard?

I am only interested in using the Messenger presence notification
capabilities (ie. Messenger.ContactList) and the Conversation.Switchboard
messaging functions. 

I am using v_250 of msnp-sharp on Vista Business 32-bit.

Original issue reported on code.google.com by Andre.du...@gmail.com on 27 Nov 2008 at 9:05

GoogleCodeExporter commented 9 years ago
Are the msnp-sharp objects (eg. Messenger) thread-safe?
No, it's not thread-safe(If your "thread-safe" means safe to have multiple 
reading 
and writing threads for an object at the same time), or, just "some of them" 
are 
thread-safe.

Is it possible to have multiple instances of Messenger in the same proces?
No, don't do that, it's dangrous.

What about Conversation.Switchboard?
Just the same, not thread-safe.

Original comment by freezing...@gmail.com on 27 Nov 2008 at 1:36

GoogleCodeExporter commented 9 years ago
Thanks.  Appreciate the information.

Original comment by Andre.du...@gmail.com on 27 Nov 2008 at 1:50

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 27 Nov 2008 at 3:42