Microsoft KB Archive/57435

System Resource Exhausted Error with SHARE Loaded PSS ID Number: Q57435 Article last modified on 02-02-1993 PSS database name: O_MSDOS

3.x 4.00 4.01

MS-DOS

Summary:

The error message “System Resource Exhausted” occurs when the operating system fails to obtain a system resource it requires to complete an operation. One known cause of this error message is when the buffer space allocated to SHARE.EXE for its file sharing information table is completely filled.

SHARE stores the complete pathname of each file opened plus 11 bytes of file sharing information. The default size of this buffer is 2048 bytes. This means that approximately 66 files can be open at once (based on a average pathname length of 20 bytes). Starting with MS-DOS Packaged Product Version 3.30, a single process can have up to 64K of files open at once.

To allow for more buffer space in SHARE, it should be loaded with the /F:xxxx parameter, where xxxx is the number of bytes to reserve for the pathname table. The SHARE switches are documented in the “MS-DOS Version 4.00 User’s Reference” in Chapter 3, on Pages 126-127.

The following is a note for MS-DOS Packaged Product Versions 4.00 and 4.01:

SHARE.EXE is normally used on systems connected to a network. However, under MS-DOS Version 4.00, SHARE is loaded automatically when a partition larger than 32 megabytes is detected on the system. To add the buffer size-adjustment switch to SHARE, insert the following into the CONFIG.SYS file:

INSTALL=C:.EXE /F:xxxx

This statement will override the default load options of SHARE and change the buffer size to allow more open files.

Additional reference words: 3.20 3.21 3.30 3.30a 4.00 4.01 noupd

Copyright Microsoft Corporation 1993.