2013-09-12 16:30:29 UTC
I do the debugging in a separate thread, thread B, not the main thread A, as it is needed for the actual (gui) program.
msdn just states that the the WaitForDebugEvent() method must be called by the thread that initiated the debugging session, and that's ok.
it all worked fine, until i decided that some stats about the debugging process would be nice.
However, when i ask thread B to query a IDebugRegisters or a IDebugDataSpaces and use that in thread A, then thread A never returns from the first call to a method of the received interface.
How can i work around this? Or is the debugger supposed to run in the main thread?