Overview

Execution is finished and we are leaving run-phase. The process should terminate.

Context

This event is fired once at the end of run phase.

Action

  • Perform any expensive termination that is better executed in the run-phase environment (e.g. computing results to return when called in EVENT_LOG_TERM).
  • Free any resources that must be freed in the run-phase environment (e.g. GUI resources).

Example

C++ Source Code (against 1199)
case EVENT_RUN_STOP: { myGui->terminate(); // event was processed ok event.response = C_OK; break; }