How to put the IDispatch::Invoke
to a thread and call TerminateThread
if it timeouts?
The reason I wanted to do this is because I find that sometimes the Invoke call will go into infinity loop and never return anything and hence the call will just sit there for forever. Hence, I am thinking of putting the Invoke to a thread and terminate the thread when it timeout.
Any advices or references are really appreciated. Peace