Microsoft KB Archive/169862

= BUG: VFP Functions Cause Infinite Loop in Debugger Watch Window =

Article ID: 169862

Article Last Modified on 12/11/1999

-

APPLIES TO


 * 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



SYMPTOMS
Entering a Visual FoxPro function, such as GetPrinter, GetFile, or GetColor, into the Watch window of the debugger may cause an infinite loop.



RESOLUTION
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.</ol> </li> Shut down the debugger.</li> Shut down Visual FoxPro from the Operating System (Windows Task Manager).</li> Re-install Visual FoxPro.</li></ol>

<div class="status_section">

STATUS
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.

<div class="moreinformation_section">

MORE INFORMATION
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

 * 1) Run the Visual FoxPro Debugger.
 * 2) Enter one of the functions listed above into the Watch window.
 * 3) When the dialog box for the function comes up, try to close it.
 * 4) 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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.