Kbase P28506: GPF when running QUIT from a trigger in an application
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/25/2003 |
|
Status: Unverified
SYMPTOM(s):
GPF when running QUIT from a trigger in an application
Application Error When Using QUIT on an OCX Trigger
CAUSE:
This failure results from the fact that the OS or "C" run-time library
procedure initiates the firing of an OCX event, and is therefore on
the stack when the event procedure runs. When the QUIT statement is
executed within the OCX trigger, Progress ends up calling the system
function "exit" before unwinding back to the OS. This causes a GPF.
An example of this error can be seen when using the command QUIT in a
PSTimer OCX.Tick trigger. However, this can happen with any ActiveX
control.
FIX:
To avoid this problem, empty the stack up to the OS which initiated the OCX event. This can be done by issuing the command, PROCESS EVENTS, just before the QUIT statement.
PROCESS EVENTS causes the session to return all the way back to the event dispatcher loop before finishing the trigger execution.