Terminating a Program

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The following is a description of 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.

See Also

Calling Debugger Events