qperr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Run-Time Error Message
 
Run-Time Error 4:  Out of file handles
 
The program ran out of DOS file handles when it tried to
open a file. This probably occurred during a call to the
Append, Reset, or Rewrite procedures.
 
Increase the setting in CONFIG.SYS to FILES=20, or reduce
the number of files open at any one time. QuickPascal may
use some file handles; try to run the program outside the
QuickPascal environment.
 
TSR (terminate-and-stay-resident) programs may use up file
handles. Remove resident software, then run the program.