www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/05/09/11:00:16

From: wajnberg AT antibes DOT inra DOT fr (Eric Wajnberg)
Newsgroups: comp.os.msdos.djgpp
Subject: no Dos memory (was: Too many open file)
Date: Fri, 9 May 2003 09:50:25 +0000 (UTC)
Organization: I.N.R.A. Antibes (France) - Ecologie des Parasitoides
Lines: 46
Message-ID: <b9ftl1$ct7$1@saphir.jouy.inra.fr>
References: <b9d99c$d41$1 AT saphir DOT jouy DOT inra DOT fr>
NNTP-Posting-Host: antibes.inra.fr
X-Trace: saphir.jouy.inra.fr 1052473825 13223 195.221.33.1 (9 May 2003 09:50:25 GMT)
X-Complaints-To: usenet AT news DOT inra DOT fr
NNTP-Posting-Date: Fri, 9 May 2003 09:50:25 +0000 (UTC)
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hummm, that's me again.

I find myself where the problem was. I used close() instead of fclose().
Pfff...

Unfortunately, this produces now another crash, after about the same time,
and the message is now:

Current value: load error: no Dos memory.

Can someone help me on this now?

Thanks for any help.

Best, Eric.



Eric Wajnberg (wajnberg AT antibes DOT inra DOT fr) wrote:
: Dear all,

: I have a problem with DJGPP that I cannot solve.

: I am using this compiler (on dos) to develop codes for making Monte Carlo
: simulations. Actually, I have two codes leading to two .exe files. The first
: one - let call it A.exe - is making a simulation with a set of parameters, and
: the results are saved (append) to an ascii file. The second one - let call it
: B.exe - is a "launcher" lanching thousands of times A.exe with different
: parameters (e.g., for making a sensitivity analysis). The two codes are
: discussing together through an (other) ascii file where the parameters are
: saved by B.exe and red by A.exe each time A.exe is launched.

: The system works properly but, after a while, B.exe crashes with the following
: message:

: Configuration: Too many open files (EMFILE).

: I've cheched all my codes and all files opened (fopen()) are properly and
: rigorously closed, and there are fsync() and fflush() everywhere.

: Can someone help me on that?

: Thanks in advance for any help.

: Best,

- Raw text -


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