Terminating a Program
The following is a description of the termination of a single program with one thread.
Termination Process
The DE sends an IDebugThreadDestroyEvent2 with a valid IDebugThread2.
The DE sends an IDebugProgramDestroyEvent2 with a valid IDebugProgram2.
The IDE goes into design mode. The debug engine or run-time environment calls IDebugPortNotify2::RemoveProgramNode to remove the program from the port.