Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

runtime error 004

8 views
Skip to first unread message

Avinash

unread,
Jan 4, 2006, 2:01:03 AM1/4/06
to
Hi
whenever i am running a borland pascal tool through command prompt then
i am getting run time error 004.Can anybody tell me what can be the
probable reason for this?
avinash

Jason Burgon

unread,
Jan 4, 2006, 6:56:30 AM1/4/06
to
"Avinash" <avin...@gmail.com> wrote in message
news:1136358063.4...@g43g2000cwa.googlegroups.com...

"Too many open files".

IDE -> Help->Error_Messages->Runtime_Errors->4

--
Jay

Author of Graphic Vision
http://homepage.ntlworld.com/gvision/


Femme Verbeek

unread,
Jan 4, 2006, 8:48:49 AM1/4/06
to
Jason Burgon schreef:

> "Avinash" <avin...@gmail.com> wrote in message
> news:1136358063.4...@g43g2000cwa.googlegroups.com...
>
>>Hi
>>whenever i am running a borland pascal tool through command prompt
>>then i am getting run time error 004.Can anybody tell me what can be
>>the probable reason for this?
>
>
> "Too many open files".
>
Very often caused by opening a file within an iteration loop.

--
Femme

Dr John Stockton

unread,
Jan 5, 2006, 9:50:53 AM1/5/06
to
JRS: In article <dpgjlp$emp$1...@localhost.localdomain>, dated Wed, 4 Jan
2006 14:48:49 local, seen in news:comp.lang.pascal.borland, Femme
Verbeek <f...@nospam.tcenl.com> posted :

>Jason Burgon schreef:
>> "Avinash" <avin...@gmail.com> wrote in message
>> news:1136358063.4...@g43g2000cwa.googlegroups.com...

>>>whenever i am running a borland pascal tool through command prompt


>>>then i am getting run time error 004.Can anybody tell me what can be
>>>the probable reason for this?

>> "Too many open files".
>>
>Very often caused by opening a file within an iteration loop.

Agreed.

The default limit is, IIRC, about 14 files. There is a way to increase
that number; but I don't recall what it is or where to look for it.

However, looking at the on-line Help I see


+---------------------+
Ś Too many open files Ś
+---------------------+

The routines Reset, Rewrite, and Append report this error if the
program has too many open files.

DOS never allows more than 15 open files per process.

If you get this error with less than 15 open files, the CONFIG.SYS file
might not include a FILES=xx entry (or xx might specify too few files).

Increase the number xx to some suitable value, such as 20.

There should, therefore, be more in the printed manuals.


Maybe the OP only has the tool EXE, and not TP/BP itself?

--
Š John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. Š
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ;
<URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ.

0 new messages