Mail Archives: djgpp/2003/05/09/11:00:16
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 -