delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/05/14/04:00:29

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: <b9srvd$qr1$1@saphir.jouy.inra.fr>
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>
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" <wajnberg AT antibes DOT inra DOT fr> 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 <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.

Any help is welcomed!




- Raw text -


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