How can Out-proc COM server detect client failure?

Let's say we have an out-proc COM server and a client. The client calls a method on the server and exits unexpectedly. Is there a way for the server to detect this and abort the method?

0


a source to share


1 answer


Not without the living. There is a built-in keep-alive mechanism if you are using DCOM. The DCOM server will periodically respond to the COM client, and if 3 pings go unanswered, the server announces that the client is "gone" and the server object can go away.



If it's not DCOM then ...?

+2


a source







All Articles