Following on from this question I now have code that can attach to a process using the Mdbg API. The problem is that I can't detach from the process if I need to. When I call mgProcess.Detach().WaitOne(); ( where mgProcess is a MDbgProcess created from an MDbgEngine object ) I [...] read more