Microsoft KB Archive/123872

{|
 * width="100%"|

PRB: Error "System resources exhausted" When Linking

 * }

Q123872

-

The information in this article applies to:


 * The Linker (LINK.EXE), included with:
 * Microsoft C/C++ for MS-DOS, versions 6.0, 6.0a, 6.0ax
 * Microsoft Visual C++ for Windows, 16-bit edition, versions 1.0, 1.5
 * Microsoft Macro Assembler (MASM), versions 5.1, 6.0, 6.1, 6.11
 * Microsoft FORTRAN for MS-DOS, version 5.1

-

SYMPTOMS
Attempting to link a program with SHARE.EXE loaded can produce this error:

System resources exhausted. Abort, Retry, Fail?

CAUSE
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.

RESOLUTION
Here are two possible workarounds:

 Do not load SHARE.EXE  Load SHARE.EXE with the following parameters: "SHARE /L:500 /F:4096" If the error still occurs, continue raising the /L and /F parameters for SHARE.EXE. 

STATUS
This behavior is by design.

MORE INFORMATION
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 query 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

Keywords : kb16bitonly kbprb

Issue type : kbprb

Technology : kbVCsearch kbAudDeveloper kbLINKSearch