Is this consider as the reentrancy problem?

Is this consider as the reentrancy problem?

Post by Snow » Thu, 10 Mar 2005 10:13:51


Hi Guys,

If a COM STA local server uses connection point to fire event to a client,
and in the client sink it calls back to the local server. Does this consider
reentrant?
 
 
 

Is this consider as the reentrancy problem?

Post by Brian Mut » Fri, 11 Mar 2005 02:09:33

Yes.

The author of the COM STA server needs to be aware that this is being done
to ensure that the server is capable of handling this scenario. It really
depends on the implementation.

Brian





consider

 
 
 

Is this consider as the reentrancy problem?

Post by Mateusz sk » Fri, 11 Mar 2005 12:55:16


Hi,
That's a very interesting problem and very common I think.


What do you mean talking about that awarness?


How to implement such capability in COM STA server?

In one of my projects I'm reading data from serial port (reader COM
object) and my reader object notifies client when some data is
collected, then (in event handler) my client calls reader object
method which returns some collection/object.
Do you see any redundant call in this approach?

Greets

--

Mateusz skot
e-mail: mateusz at loskot dot net
www: http://www.yqcomputer.com/
 
 
 

Is this consider as the reentrancy problem?

Post by Alexander » Sat, 12 Mar 2005 02:56:00

There's nothing in your post to suggest whether you may have
reentrancy problems or not. Reentrancy itself is not a problem,
it's the code that's not designed to deal with it that causes
grief...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: XXXX@XXXXX.COM
MVP VC FAQ: http://www.yqcomputer.com/
=====================================