"Too many open files".
IDE -> Help->Error_Messages->Runtime_Errors->4
--
Jay
Author of Graphic Vision
http://homepage.ntlworld.com/gvision/
--
Femme
>>>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.