From: wajnberg AT antibes DOT inra DOT fr (Eric Wajnberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: no Dos memory (was: Too many open file) Date: Wed, 14 May 2003 07:41:33 +0000 (UTC) Organization: I.N.R.A. Antibes (France) - Ecologie des Parasitoides Lines: 69 Message-ID: References: NNTP-Posting-Host: antibes.inra.fr X-Trace: saphir.jouy.inra.fr 1052898093 27489 195.221.33.1 (14 May 2003 07:41:33 GMT) X-Complaints-To: usenet AT news DOT inra DOT fr NNTP-Posting-Date: Wed, 14 May 2003 07:41:33 +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 J. L. (jlsgarrido AT inbox DOT lv) wrote: : "Eric Wajnberg" escribió en el mensaje : news:b9ftl1$ct7$1 AT saphir DOT jouy DOT inra DOT fr... : > 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. : Uff, with the lack of info, we can say anything useful. Can you : produce minimal programs that reproduce this behavouir? Ok, here is a small code that generates the probleme. One code is: #include #include #include int main(void) { return 0; } It has to be compiled into a "b.exe" file. A second code is: #include #include #include int main(void) { int i=0; (void)system("cls"); while (1) { (void)system("b"); gotoxy (10,10); (void)printf("%d",i); i++; } return 0; } As you can see, it lauchs b.exe an infinite number of times. If I run this second code, I get a crash arround 2000-2500 on my system (under Windows 98). If you want to see the error message, you should launch this NOT in full screen mode. Any help is welcomed!