Share via


Sending Load-Complete and Entry-Point Events

When the debug engine first starts, it sends to the session debug manager (SDM) an IDebugEngineCreateEvent2 event, indicating that the debug engine has started. When a program is created for execution, the debug engine sends to the SDM an IDebugProgramCreateEvent2 indicating this fact.

Once the loading of the program has completed (but not actually started), the SDM needs to be notified. That is why the debug engine sends the IDebugLoadCompleteEvent2 to the SDM. Then, when the program has started and reached its entry point, the debug engine sends the IDebugEntryPointEvent2 event to the SDM. Both of these events are synchronous, meaning that the debug engine (and the program it is debugging) is suspended until the SDM finishes processing the event.

In the following procedure, you implement the Load Complete and Entry Point events but add code to send only the Load Complete event. The Entry Point event is sent later, after the discussion about breakpoints.

To send the load complete and entry point events

  1. Implementing the Load-Complete and Entry-Point Events.

  2. Sending the Load-Complete Event.

  3. Converting Stopping Events to Messages.

See Also

Concepts

Sending the Startup Events