Microsoft KB Archive/114501

{| = BUG: System Hang with BROWSE and SET REPROCESS TO 0 =
 * width="100%"|

ID: Q114501

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.6

SYMPTOMS
The computer may hang if a BROWSE command is executed with an ON ERROR routine that performs only the RETRY command while SET REPROCESS has been set to 0.

RESOLUTION
In the error handler routine, give the user a chance either to stop the RETRY command or to try to resolve the problem before the RETRY command is executed.

STATUS
Microsoft has confirmed this to be a problem in FoxPro version 2.6 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base when it becomes available.

Steps to Reproduce Problem
1. Run FoxPro.

2. Type the following commands in the Command window:

SET EXCLUSIVE OFF USE SYS(2004)+"TUTORIAL\CUSTOMER" BROWSE 3. Modify the first record to obtain a record lock. 4. Minimize FoxPro.

5. Run another instance of FoxPro.

6. Open the same copy of CUSTOMER.DBF that is open in the other instance

of FoxPro. 7. Run the following program: DEFINE WINDOW test AT 0.00, 0.00 SIZE 22.000,98.400 ; FONT "MS SANS SERIF", 8 FLOAT NOCLOSE MINIMIZE SYSTEM SET REPROCESS TO 0 ON KEY LABEL ESCAPE DO eschand ON ERROR DO errhand m.wzlquitting=.F.     ACTIVATE WINDOW test

@ 7.385, 21.600 GET m.qziBrowse PICTURE "@*HN Browse" ; SIZE 1.769,9.000, 0.667 DEFAULT 1 ; FONT "MS SANS SERIF", 8 STYLE "B" VALID button1

READ CYCLE NOLOCK VALID m.wzlquitting

RELEASE WINDOW test ON ERROR ON KEY LABEL ESCAPE

PROCEDURE errhand RETRY

PROCEDURE dobrow ON KEY LABEL SHIFT+F5 BROWSE NORMAL IN SCREEN NOWAIT

FUNCTION button1 ON KEY LABEL SHIFT+F5 DO dobrow KEYBOARD "{SHIFT+F5}" 8. Choose the Browse push button. The system will hang. Additional reference words: FoxWin 2.60 stop responding lock up halt freeze buglist2.60 KBCategory: kbprg kbbuglist KBSubcategory: FxprgBrowse
 * }