PRB: FoxPro RLOCK() Fails After Locking 220 Records

ID: Q149613

2.60a MACINTOSH kbprg kbprb

The information in this article applies to:

SYMPTOMS

In FoxPro 2.6a for Macintosh, the RLOCK()function fails after locking 220 records due to a limitation of Macintosh file sharing.

STATUS

Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

1. Confirm that file sharing is enabled by clicking the Apple menu,

   choosing Control Panels, and then selecting Sharing Setup.

2. Create and run the following program:

   SET STATUS ON
   USE SYS(2004)+"Tutorial:Customer.dbf" SHARED
   SET MULTILOCKS ON
   DO WHILE !EOF() AND RLOCK()
      SKIP
   ENDDO

3. After record 220 is locked, the message "Attempting to lock... Press ESC
   to Cancel" appears briefly in a Wait Window, and then the program
   terminates. The status bar displays Record: 221/500 Record Unlocked

Additional reference words: 2.60a FoxMac KBCategory: kbprg kbprb KBSubcategory: FxotherGeneral
Keywords          : FxotherGeneral 
Version           : 2.60a
Platform          : MACINTOSH

Last Reviewed: April 9, 1996