Say we have an out-proc COM server and a client. The client calls a method in the server and unexpectedly terminates. Is there a way for the server to detect this and interrupt the method?
Not without a keep-alive. There is a built-in keep-alive mechanism if you are using DCOM. The DCOM server will pingback to the COM client periodically, and if 3 pings go unanswered, the server declares the client "gone" and the server-side object can go away.
If it is not DCOM then...?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more