| delorie.com/archives/browse.cgi | search |
| Message-ID: | <3EC1FD0D.4090201@earthlink.net> |
| From: | Martin Ambuhl <mambuhl AT earthlink DOT net> |
| 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: | <b9d99c$d41$1 AT saphir DOT jouy DOT inra DOT fr> <b9ftl1$ct7$1 AT saphir DOT jouy DOT inra DOT fr> <b9gid7$j7uee$1 AT ID-143309 DOT news DOT dfncis DOT de> <b9srvd$qr1$1 AT saphir DOT jouy DOT inra DOT fr> |
| 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 <stdio.h>
> #include <stdlib.h>
> #include <conio.h>
>
> int main(void)
> {
> return 0;
> }
>
> It has to be compiled into a "b.exe" file.
>
> A second code is:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <conio.h>
>
> 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |