Share via


Sending the Load-Complete Event

The load complete event, as represented by the IDebugLoadCompleteEvent2 interface, is sent to the session debug manager (SDM) to indicate that all components needed for executing the program in the interpreter have been loaded.

To send the load complete event

  1. Open the Program.cpp file, find the CProgram::EngineAttach method, and replace the line //TODO: ADD LOAD EVENT NOTIFICATION with the following:

        CLoadCompleteEvent *pDLCE = new CLoadCompleteEvent; 
        pDLCE->SendEvent(pCallback, m_spEngine, this, this); 
    
  2. Build the project to make sure there are no errors.

See Also

Tasks

Sending Load-Complete and Entry-Point Events