Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calls to _IOutBound from several threads

Status
Not open for further replies.

alvin777

Programmer
Jan 12, 2002
2
RU
I have a VB application which uses COMponent written on VC++. COMponent implements IConnectionPoint and creates additional threads. Pointer to [source] interface _IOutBound is correctly marshalled between main thread and additional ones.
The problem arises when VB calls Release (and --m_Ref==0). COMponent waits for threads to end and VB cannot serve call to _IOutBound since it is waiting in COMponent. And if one of the threads calling for _IOutBound - I got deadlock.
How can I prevent that deadlock?

--
Alvin777
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top