Article ID: 31053 - Last Review: November 21, 2006 - Revision: 1.3 QB.EXE "Path/File Access Error" Running Out of File HandlesThis article was previously published under Q31053 SUMMARY
When running a program in the QB.EXE editor, simultaneously OPENing
more file handles than are allowed in DOS generates the error message
"path/file access error." An "illegal function call" error message is
then displayed if the Shell command from the File menu is used.
To get the QB.EXE editor to work correctly again, type CLOSE in the immediate window to free the open file handles. Note that when you use DOS Version 3.30, you can perform an interrupt hex 21, function CALL hex 67, to obtain more than 15 DOS file handles available to Basic programs. This information applies to QuickBasic Versions 4.00, 4.00b, and 4.50, to the QB.EXE editor in Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS, and to the QBX.EXE editor in Microsoft Basic PDS Version 7.00 for MS-DOS. MORE INFORMATION
MS-DOS Versions 3.30 and later allow more than 20 files when you use
the FILES=20 statement in the DOS CONFIG.SYS file; however, QuickBasic
only recognizes up to 20 files by default.
Because QuickBasic reserves the five default MS-DOS file handles for standard input/output, a program cannot OPEN more than 15 files at one time. If no FILES=N statement exists in the DOS CONFIG.SYS file, the default is FILES=8, which leaves three files for the program. QuickBasic uses the following five files by default:
APPLIES TO
| Article Translations
|

Back to the top
