Consultor Eletrônico



Kbase P100883: Statements after RUN PERSISTENT statement execute only after the called procedure is closed.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/4/2005
Status: Unverified

SYMPTOM(s):

Statements after RUN PERSISTENT statement execute only after the called procedure is closed.

The main block of the called persistent procedure contains the following code:
REPEAT ON STOP UNDO, LEAVE ON QUIT UNDO,LEAVE:
WAIT-FOR CONNECT OF hServer.
IF lEnd = TRUE THEN LEAVE.
END.

CAUSE:

The WAIT-FOR REPEAT loop causes control not to return to the calling procedure before the called PERSISTENT procedure is closed.

FIX:

Remove the WAIT-FOR from the called PERSISTENT procedure and let the calling procedure invoke an internal procedure in the called PERSISTENT procedure to close and delete that PERSISTENT PROCEDURE when desired.