delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/30/11:17:41

Date: Sun, 30 Mar 1997 18:56:57 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: TPY <pitrnd AT soback1 DOT kornet DOT nm DOT kr>
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: <Pine.SUN.3.91.970330185622.15517Q-100000@is>
MIME-Version: 1.0

On 28 Mar 1997, TPY wrote:

>                                         this program is compiler..
>                                         __|___
> Breakpoint 1, systemFunc ( str=0x16a148 "comp -c -o ./SCR10000.scr ./SCR10000.map",
>            ' ' <repeats 61times>) 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019