Date: Sun, 30 Mar 1997 18:56:57 +0300 (IDT) From: Eli Zaretskii To: TPY cc: djgpp AT delorie DOT com Subject: Re: error in system() C function.. In-Reply-To: <5hfs9n$7kg$1@usenet.kornet.nm.kr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 28 Mar 1997, TPY wrote: > this program is compiler.. > __|___ > Breakpoint 1, systemFunc ( str=0x16a148 "comp -c -o ./SCR10000.scr ./SCR10000.map", > ' ' ) at mydos.c:446 > 446 ret = system( str ); > (gdb) n It is very hard to interpret this script. Please post the fragment of the source code that is relevant to this program and the exact string which is passed to the `system' function (I'm not sure whether GDB printed it all, because it sometimes truncates long strings). > C:\WINDOWS\TEMP\ERR2: Too many open files Is this the *exact* message you see? If so, then it is from the `comp', the program that you invoke via `system', because the message from a DJGPP program should have "(EMFILE)" appended to the end of the message. If this is true, it is impossible for me to guess why the `comp' prints this message, since I'm not familiar with its requirements. > * reference > "config.sys" file inserted next 1 line. > files = 100 If the error message is from `comp' it might have limitations of the number of files it uses at the same time which is smaller than the limit in CONFIG.SYS. For example, programs compiled with Borland C or MSC have a built-in limit of 20 files because that's the size of the tables hard-coded into their runtime libraries.