How do I protect myself against a COM call that can hang? I’m already running the server out-of-process.

1 · Raymond Chen · Jan. 22, 2021, 3:01 p.m.
Say you invoke a cross-process COM method, and then you decide to cancel it, say, because it’s taking too long. What you definitely don’t want to do is call Terminate­Thread. That way lies madness. What you can do is enable call cancellation by calling Co­Enable­Call­Cancellation, The post How do I protect myself against a COM call that can hang? I’m already running the server out-of-process. appeared first on The Old New Thing....