Message-ID: <3EC1FD0D.4090201@earthlink.net> From: Martin Ambuhl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en, de, fr, ru, el, zh MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: no Dos memory (was: Too many open file) References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 45 Date: Wed, 14 May 2003 08:24:00 GMT NNTP-Posting-Host: 65.148.4.194 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread2.prod.itd.earthlink.net 1052900640 65.148.4.194 (Wed, 14 May 2003 01:24:00 PDT) NNTP-Posting-Date: Wed, 14 May 2003 01:24:00 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eric Wajnberg wrote: > 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. Under XP, I had to manually kill this. It was still running strong at 25100, more than 10 times the maximum you report.