Microsoft KB Archive/169862
Article ID: 169862
Article Last Modified on 12/11/1999
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 5.0a
- Microsoft Visual FoxPro 6.0 Professional Edition
This article was previously published under Q169862
Entering a Visual FoxPro function, such as GetPrinter(), GetFile(), or GetColor(), into the Watch window of the debugger may cause an infinite loop.
One of the four following methods may stop the infinite loop:
- Delete the entry from the debugger as follows:
- Click on the Watch window entry.
- When the dialog box comes up, close it.
- Click on the Watch window entry again.
- When the dialog box comes up, close it again.
- With the cursor on the Watch window entry, it should be able to be deleted.
- Shut down the debugger.
- Shut down Visual FoxPro from the Operating System (Windows Task Manager).
- Re-install Visual FoxPro.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
The Visual FoxPro functions that display a dialog box and then return a value based on the entries to the dialog box may cause an infinite loop if entered into the Watch window of the debugger. The following functions were tested and cause the problem:
GetColor(), GetCP(), GetDir(), GetFile(), GetPict(), GetPrinter()
Steps to Reproduce Behavior
- Run the Visual FoxPro Debugger.
- Enter one of the functions listed above into the Watch window.
- When the dialog box for the function comes up, try to close it.
- Click anywhere on the screen. Note that the dialog box that was just closed is displayed again.
Each time the dialog box is closed, it will display again as soon as the mouse is clicked.
Additional query words: kbvfp500 kbvfp600
Keywords: kbbug KB169862