Consultor Eletrônico



Kbase P22937: Process terminates when program requested by users generates ERROR, STOP or QUIT condition
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

Background process accepts requests via sockets and runs the requested 4GL program

When the requested 4GL program generates a STOP, QUIT or ERROR condition the background process terminates

CAUSE:

The termination of the background process happens because the RUN statement that executes the user requested 4GL program does not have a DO block surrounding it that will handle STOP, QUIT or ERROR conditions.

FIX:

Modify the source code as follows:


UserCodeBlock:
DO ON ERROR UNDO, LEAVE UserCodeBlock
ON STOP UNDO, LEAVE UserCodeBlock
ON QUIT UNDO, LEAVE UserCodeBlock:
RUN VALUE(...Name of Program User Requested...).
END.