Re: Is it safe to call disconnect? - WeOnlyDo Discussion board

Re: Is it safe to call disconnect? (General questions)

by wodSupport, Sunday, August 14, 2005, 23:37 (7040 days ago) @ Tushar

Tushar,

it is safe to call Disconnect after Connect when nonblocking mode is used. But, it's dangerous to use component from multiple threads (component is apartment-threaded), you must use it from same thread where you initialized it, otherwise it may crash - as you experienced it.

I suggest you reorganize your code a bit so you can call Disconnect from same thread. Possible?


Complete thread: