Runtime Error Codes

Posted on 2000-05-01
Last Modified: 2012-05-04
***Challenge UPDATED***
I need a list of the runtime error codes and their possible causes.

At this point, I have a runtime error 004 in a DOS windows under Windows NT.

Other times a runtime error 005 pops up

Some replies received, but none will solve the problem.
ok - the program works FINE under DOS, WIN95/98 etc. Even on a workstation running
NOVELL 32-bit client.
BUT when I run a "CMD" DOS box under WINDOWN NT 4 SERVER, I get a RUNTIME 004 error
It has to do with file handles I'm sure.
But how the HECK!!! do I fix it or create a DOS box in NT that will allow more file handles.
Question by:ultipos
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +3
LVL 49

Expert Comment

ID: 2766803
4 Too many open files  caused by Reset, Rewrite, Append

You are probably opening files without closing something.  There is a limit on the number of files that you can open.  When finished with a file close it.

5 File access denied

Caused by Reset, Append, Rewrite, Rename, MkDir, RmDir and others

Probably Reset, Append, Rewrite, Rename in your case.  You may be trying to open a file that you have already opened.

Author Comment

ID: 2767982
Edited text of question.

Author Comment

ID: 2767983
Adjusted points from 10 to 15
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

LVL 10

Accepted Solution

ECollin earned 15 total points
ID: 2768603
hi ultipos,

the number of open files at a time is managed by the FILES parameter in the config.sys (DOS) or in the config.nt (NT)

For your dos session under NT, edit (or create) the \WINNT\SYSTEM32\Config.NT file and add "FILES=200"


Expert Comment

ID: 2771448
Has anyone noticed this, but any time I download someones procedures that use disk access, they never, ever, close the file? How hard is it to type close? Just makes me want to smack them sometimes.

Expert Comment

by:My name is Mud
ID: 2772441

Expert Comment

ID: 2776810
>>I need a list of the runtime error codes and their possible causes.

Runtime errors for what compiler/version? If Turbo Pascal, once into IDE, press Shift-F1, go to "error,messages" and then go to "Runtime errors". The full list is there.

>>Has anyone noticed this, but any time I download someones procedures that use
>>disk access, they never, ever, close the file?

Those are the same nasty guys that rename a file (under VB) with a SHELL statement. ~~~~~>:(

Expert Comment

by:My name is Mud
ID: 2776822
<smack smack>

Author Comment

ID: 2777229
Hi Mate
Yeah - in the end this was the solution
Weird thing is that I DID try this without success and then 'all of a sudden" memory just opened up to me.

I created PIF's and set their properties and pointed them to alternate config.nt files etc, to no avail

I increased "file=" in config.nt from 50 to 100 to 150 and then JUMPED to 1024. No sucess!

Then I came back to 200 after reading your comment and when I went in, VOILA!!!! I had 500k available for the program. Bloomin' weitd

I deleted my pif's and alternate config.nt's and all seems ok now.

At some stage I will check which "files=" values are effective. In the maentime I have a few LAN's to get out with my software!

Thanks anyway buddy - your comments pointed gave me a perspective.


Expert Comment

ID: 2780255
Please, your formal question was this:

>>I need a list of the runtime error codes and their possible causes. <<

¿Could you tell me, please, where's the answer?

Author Comment

ID: 2787157
Briefly, add the entry
in \winnt\system32\config.nt

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question