Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code 67 Error

Status
Not open for further replies.

TOMBUGGY

Programmer
Oct 4, 2000
36
US
One (and only one) of our users is getting a Code 67 (Too Many Files) Error on an OPEN Statement. The program is running as a DOS App under Windows in a network environment. We ahve verified that the two documented reasons for the error -- too many open files versus FILES=N in CONFIG.SYS, and more than 255 files in a directory -- are NOT the case. Any ideas for other possible reasons for the error (including the possibility that a wrong Error Code is being transmitted)? Thanks. [sig][/sig]
 
Here's a word for word copy of the Error Code 67 as it appears in MICROSOFT(r) QuickBASIC(tm) Version 4.5 (Copyright 1988, 1990 Microsoft Corporation. All rights reserved):

[red]+++++++++++++[/red]
Too many files

At compile time, this error occurs when include files are nested more than five levels deep. It occurs at run time when the 255-file directory maximum is exceeded by an attempt to create a new file with a SAVE or OPEN statement. (Compile-timer or run-time error)

ERR code: 67
[red]+++++++++++++[/red]

Therefore: See that "REM $INCLUDE: xxx.BI's" are not nested more than 5 levels--may want to check out your SUBs too and not just the main module's and any other Loaded modules. Double check your prg's OPEN statments for LEN--also check the current path to the location of the QB compiler, you can use FILES *.exe on a new screen to see the directory listing and at the top of the list is the current directory...check that for length too.

Otherwise, I'm at a loss.

PS--I think the SAVE that MS mentions is for MAC's basic.

--MiggyD [sig]<p> <br><a href=mailto: > </a><br><a href= > </a><br>You can pick your friends and you can pick your teeth and you can pick your toes, just don't pick you nose.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top