Thread
-
How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)
-
How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)
You have to use the debug API to do what you are asking. However that is a bad idea. You need to find out which object the thread is locking on and release the object so the thread can continue, or better yet figure out what condition is causing the deadlock and prevent it from occuring.
-
How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)
how is the thread suspended? Is it through an external called of Suspend() method or by waiting for a handle through WaitForSingleObject, WaitForMultipleObjects,MsgWaitForMultipleObjects functions?
-
You have to use the debug API to do what you are asking. However that is a bad idea. You need to find out which object the thread is locking on and release the object so the thread can continue, or better yet figure out what condition is causing the deadlock and prevent it from occuring.
-
how is the thread suspended? Is it through an external called of Suspend() method or by waiting for a handle through WaitForSingleObject, WaitForMultipleObjects,MsgWaitForMultipleObjects functions?