Kill a non-responsive COM Object
-
Is there any way to kill a COM Object which I have started. Normally I create the COM Object, and when I'm done with it I call obj->Release(); to decrease the ref. count. But what if the COM Object stops responding? Is there anyway to kill it... Something like: KillComObjectNow(obj); I know I know, it might cause resourse/memory leaks and stuff, but... The problem is that I'm writing a server-thing for which people can write plug-ins/extensions in COM, and if one of those stops responding I want to kill it... - Anders Money talks, but all mine ever says is "Goodbye!"
-
Is there any way to kill a COM Object which I have started. Normally I create the COM Object, and when I'm done with it I call obj->Release(); to decrease the ref. count. But what if the COM Object stops responding? Is there anyway to kill it... Something like: KillComObjectNow(obj); I know I know, it might cause resourse/memory leaks and stuff, but... The problem is that I'm writing a server-thing for which people can write plug-ins/extensions in COM, and if one of those stops responding I want to kill it... - Anders Money talks, but all mine ever says is "Goodbye!"
You can use MessageFilters, look at IMessageFilter
-
You can use MessageFilters, look at IMessageFilter