Termination and Detaching

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 describes normal termination.

Discussion

After the IDebugLoadCompleteEvent2 or IDebugEntryPointEvent2 interface continues, if there are no breakpoints, exceptions, run-time errors, or infinite loops in the application to be debugged, the program being debugged will run to completion. This is normal termination.

You must send an IDebugProgramDestroyEvent2 to implement normal termination. This requires implementing the IDebugProgramDestroyEvent2::GetExitCode method.

See Also

Creating a Custom Debug Engine