Article ID: 193502
Article Last Modified on 5/12/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition, when used with:
- Microsoft Windows NT 4.0
- Microsoft Windows 95
- Microsoft Windows 98 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition, when used with:
- Microsoft Windows NT 4.0
- Microsoft Windows 95
- Microsoft Windows 98 Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition, when used with:
- Microsoft Windows NT 4.0
- Microsoft Windows 95
- Microsoft Windows 98 Standard Edition
- Microsoft Visual FoxPro 5.0a, when used with:
- Microsoft Windows NT 4.0
- Microsoft Windows 95
- Microsoft Windows 98 Standard Edition
This article was previously published under Q193502
SYMPTOMS
Running a Visual FoxPro form through a READ EVENTS command without a CLEAR EVENTS command, produces an error dialog box, which contains an OK button. The following text displays in the error dialog box:
If the OK button is not selected and the error dialog box remains on the Visual FoxPro screen, when End Task is selected from the Task Manager, one of the following system errors appear (depending on the version of the operating system):
- In Windows 95, and in Windows 98, using Visual FoxPro 5.0x, the following error displays:
Clicking the Details button reveals the following message:
- In Windows 95 and in Windows 98, using Visual FoxPro 6.0, the following error appears:
Clicking the Details button reveals the following message:
- In Windows NT 4.0, using Visual FoxPro 5.0x, the following error appears:
- In Windows NT 4.0, using Visual FoxPro 6.0, the problem does not occur.
CAUSE
Not clearing the "Cannot Quit Visual FoxPro" error dialog box by selecting the OK button prior to selecting End Task from the Task Manager.
RESOLUTION
Clear the "Cannot Quit Visual FoxPro" error dialog box by selecting the OK button prior to using End Task and the error does not occur.
STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
WARNING: The following steps cause Visual FoxPro to crash and you may not be able to restart Visual FoxPro unless you turn your computer off and on (perform a cold boot).
NOTE: The following example would not normally be performed by a programmer using Visual FoxPro, however it is used here because it is the easiest way to demonstrate the problem.
- Create a program with the following FoxPro command:
READ EVENTS
- Save and run the program.
- Try to quit Visual FoxPro, by closing the Visual FoxPro window.
- The following error displays in a dialog box, which contains an OK button:
- Do NOT select the OK button and keep the error dialog box on the screen.
- Invoke the Windows Task Manager and select the End Task button.
NOTE: You may need to select End Task more than once. - One of the error messages listed in the SYMPTOMS section occurs.
REFERENCES
For more information, please see the following article in the Microsoft Knowledge Base:
172455 SAMPLE: Exitfox.exe Overcomes "Cannot Quit Visual FoxPro" Error
(c) Microsoft Corporation 1998. All Rights Reserved. Contributions by Perry Newton, Microsoft Corporation.
Additional query words: exit close quit
Keywords: kbbug kbvfp600fix kbxbase kbprb KB193502