Terminating a program

The following section describes the termination of a single program with one thread.

Termination process

  1. The DE sends an IDebugThreadDestroyEvent2 with a valid IDebugThread2.

  2. 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.