Microsoft KB Archive/89783

{|
 * width="100%"|

Windows Err Msg: Insufficient File Handles...

 * }

Q89783

-

The information in this article applies to:


 * Microsoft Windows versions 3.0, 3.0a, 3.1, 3.11

-

SYMPTOMS
When an MS-DOS-based application is run from Microsoft Windows in 386 enhanced mode, the following error messages may occur:

Insufficient file handles, Increase Files in the CONFIG.SYS

"-and/or-"

Cannot find file; check to ensure the path and filename are correct

WORKAROUND
If the problem occurs while running on a network, check to be sure that the network is correctly installed. Refer to &quot;Troubleshooting a Network Setup,&quot; below.

If the problem is not related to the network setup, try increasing the number of files in the CONFIG.SYS file (FILES= ) or in the SYSTEM.INI file (PerVMFILES= ) to solve the problem. Refer to &quot;Additional Troubleshooting,&quot; later in this article.

Troubleshooting a Network Setup
 Confirm that you have the proper network and version installed, as follows:

 Choose the Windows Setup icon from the Program Manager Main group. The Windows Setup dialog box is displayed. This dialog box identifies the type of network that you have installed on your system. If the dialog box says &quot;No Network Installed,&quot; You need to install the proper network.

If the network is correctly installed, go to step 2. To install the correct network, from the Options menu, select &quot;Change System Settings...&quot; and press ENTER.  If the problem still occurs under a Novell Network, check to see if Windows is set up with the No Network option selected or an incorrect network driver. If either of these is the problem, run Windows Setup in maintenance mode (run Setup from outside Windows), then select and install the correct Novell network.

NOTE: This problem occurs if No network is specified for Windows and you are connecting to Novell NetWare. Windows works in standard mode without the network specified, but it needs needs the virtual device drivers to run in enhanced mode. If the problem still occurs, check to see that IPX.COM and NETX.COM files are the correct versions.

Additional Troubleshooting
If the above steps don't work, troubleshoot your file settings as follows:

 Increase the FILES= setting in the CONFIG.SYS file. Informal testing has shown that the FILES= statement in the CONFIG.SYS file should have a value of at least 45. Increasing this setting increases the number of global file handles available to each application running in the MS-DOS environment.</li>  This error message may refer to private file handles, which are specific to each virtual machine running under Windows. To specify the number of private file handles that will be set for each Windows virtual machine, place the following statement in the [386enh] section of SYSTEM.INI: "PerVMFILES= " Increase the number of files until the application runs without displaying the above error message. The default number is 10. </li>  If the above problem occurs when running under a Novell network, the SHELL.CFG file may need to be edited to include the following line: "FILE HANDLES=60" If the SHELL.CFG file does not exist, use a text editor to create it. This file must reside in the same directory as the NETX.COM file.

NOTE: The sum of the FILES= setting in the CONFIG.SYS file, the PerVMFILES= setting in the SYSTEM.INI file, and the FILE HANDLES= setting in the SHELL.CFG file cannot exceed 255. </li></ol>

MORE INFORMATION
Insufficient file handles can be caused by the following:


 * An MS-DOS 5.0 floppy installation [type setup/f] was performed. This procedure creates a CONFIG.SYS file with the statement FILES=10 included. If the system is then started with the Startup disk or if CONFIG.SYS from the Startup disk is copied to the root directory of the boot drive, the above error messages appears in Windows running in 386 enhanced mode.
 * You are running version 6.0 of the Microsoft Macro Assembler (MASM) and the NEW-CONFIG.SYS file was renamed to CONFIG.SYS. This file contains the statement FILES=20.

Additional query words: 3.10 3.11 tshoot err msg wp homemm win95

Keywords : win31

Issue type :

Technology : kbWin3xSearch kbWin300 kbWin300a kbWin310 kbWin311