Mail Archives: djgpp/2003/05/14/04:00:29
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 -