PRB: Error "System resources exhausted" When Linking

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:

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:

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