ID: Q123872
5.10 5.13 5.15 5.20 5.30 5.31 5.31.009 5.50 5.60 MS-DOS kbtool kbprb
The information in this article applies to:
- Microsoft C for MS-DOS, versions 6.0, 6.0a, 6.0ax
- Microsoft C/C++ for MS-DOS, version 7.0
- Microsoft Visual C++ for Windows, versions 1.0 and 1.5
- Microsoft FORTRAN for MS-DOS, version 5.1
- Microsoft Macro Assembler (MASM) for MS-DOS, versions 5.1, 6.0,
6.1, and 6.11
Attempting to link a program with SHARE.EXE loaded can produce this error:
System resources exhausted. Abort, Retry, Fail?
LINK and NMAKE keep a large number of files open. The buffer that holds file sharing information or the number of simultaneous file-region locks exceeded the default values for SHARE.EXE.
Here are two possible workarounds:
-or-
SHARE /L:500 /F:4096
If the error still occurs, continue raising the /L and /F parameters for SHARE.EXE.
This behavior is by design.
The /L parameter specifies the maximum number of file-region locks. By default, SHARE.EXE supports up to 20 simultaneous file-region locks.
The /F parameter for SHARE specifies the size of the buffer in bytes used to hold file sharing information. This information includes the fully qualified path name of each open file, along with some additional overhead. By default this buffer is 2048 bytes in size.
Additional reference words: 5.10 5.13 5.15 5.20 5.30 5.31 5.31.009 1.11 1.13 1.20 1.21 1.30 1.40 KBCategory: kbtool kbprb KBSubcategory: LinkIss NmakeIss Keywords : kb16bitonly
Last Reviewed: July 23, 1997