PRB: SHARE Causes "File Access Denied" When Opening Work Areas

Last reviewed: April 29, 1996
Article ID: Q102462
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS

When you open several work areas in FoxPro for Windows, a "File Access Denied" error may occur. This error occurs with Microsoft Windows version 3.1, not with Microsoft Windows for Workgroups. If SHARE is loaded without any parameters, the number of databases that can be opened in the work areas in FoxPro for Windows is limited. If SHARE is not loaded, opening multiple databases proceeds as normal.

CAUSE

By default, the SHARE /F parameter, which is the number of bytes allocated for the MS-DOS storage area used to record file-sharing information, defaults to 2048. The /L parameter, which sets the number of files that can be locked at one time, defaults to 20.

RESOLUTION

If you must have SHARE loaded, add the /F:5120 and /L:500 parameters to the SHARE line. This will permit you to open more databases in work areas.


Additional reference words: FoxWin 2.50 2.50a files databases multiple
workareas 2.50b 2.60
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.