Terminating a program
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. 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 section describes 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.