BUG: System Hang with BROWSE and SET REPROCESS TO 0

Last reviewed: June 27, 1995
Article 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.

MORE INFORMATION

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.