FIX: WAIT WINDOW NOWAIT Problem with Top-Level Forms (175766)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q175766 SYMPTOMS
When running a Visual FoxPro program that displays a WAIT WINDOW on
activation of a Top-Level form, the Top-Level form stops responding. The
Top-Level form does not close. The WAIT WINDOW does not close. If the
Visual FoxPro desktop is not hidden, it can be activated to access the
Command window either by clicking it or by clicking the button on the
Windows Taskbar. Upon reactivating the Top-Level form by clicking the
Windows Taskbar button for the Top-Level form, a transparent copy of the
Top-Level form appears but the Top-Level form is still unresponsive. Quit
Visual FoxPro to eliminate the Top-Level form.
CAUSE
There is a WAIT WINDOW "some message" NOWAIT command in the Activate method
of the Top-Level form, which is followed by the Thisform.Release command.
The problem still occurs if there is other code between the WAIT WINDOW
command and the Thisform.Release command.
RESOLUTION
There are three possible workarounds, depending on what is desired:
- Use WAIT WINDOW "some message" TIMEOUT 1.
-or-
Use a number greater than one.
- Remove the WAIT WINDOW completely.
- Use WAIT WINDOW "some message" TIMEOUT 0.
-or-
Remove the TIMEOUT clause completely. Clicking the mouse is
necessary in this case though.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This has been corrected in Visual FoxPro
6.0.
Modification Type: | Major | Last Reviewed: | 3/23/2000 |
---|
Keywords: | kbbug KB175766 |
---|
|