Consultor Eletrônico



Kbase P185446: Parent program calls child program once for each iteration of a loop but when running in batch mode
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/6/2011
Status: Unverified

SYMPTOM(s):

Parent program calls child program once for each iteration of a loop

When run interactively everything works properly

When run in batch mode the process ends after the first iteration

FACT(s) (Environment):

Windows
OpenEdge 10.x

CAUSE:

The parent program contained a wait-for close of this-procedure statement in it and the child program also had a wait-for close of this-procedure statement in it but the statement was only executed when the process was not running in batch mode. However, the child process always did an apply close to this-procedure even when running in batch mode.

FIX:

Modify the code in the child procedure to avoid executing the apply close to this-procedure statement when running in batch mode.