Consultor Eletrônico



Kbase P155418: PAUSE statement with PROCESS EVENTS disables the user interface
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/4/2009
Status: Unverified

SYMPTOM(s):

PAUSE statement with PROCESS EVENTS disables the user interface

PAUSE <n> with NO-MESSAGE disables user input

FACT(s) (Environment):

Windows
Progress 7.x
Progress 8.x
Progress 9.x
OpenEdge 10.x

CAUSE:

Bug# OE00192927

CAUSE:

Using PAUSE <n> in a loop and using PROCESS EVENTS to capture events that occur during the pause or the execution of the loop causes the user interface to be disabled for user interaction. No events from the user interface are processed except for ENDKEY, END-ERROR or STOP.

FIX:

To workaround this problem use the WinAPI sleep function as follows:
RUN sleep ( 1000 ). /* time is in milliseconds- 1000 = 1 second */

PROCEDURE Sleep EXTERNAL "KERNEL32":
DEFINE INPUT PARAMETER lMilliseconds AS LONG NO-UNDO.
END PROCEDURE.