Mail Archives: djgpp-workers/1999/10/17/08:59:49
Regarding the one below: is it a good idea to add code to the exit code
that switches the display to mode 3 (after v2.03 is released)?
Do other DOS compilers do that?
One consideration against this is that someone might write a program to
switch the display into some special mode and expect it to stick.
---------- Forwarded message ----------
Date: Sat, 16 Oct 1999 02:08:02 -0700 (PDT)
From: Mohamed Saad <bazramit AT yahoo DOT com>
To: djgpp AT delorie DOT com
Subject: exit() makes my program crash!!!! (FINAL comment)
Hello everyone,
how are u? fine?? good! :)
well... regarding my previous problem (exit() causes
my prog to freeze..) here is the last comment!
i have discovered that the program does NOT freeze!
the program has actually finished! but screen did not
return to text mode!! i became sure of this, as, after
the program freezed, i just typed 'exit' and i simply
returned back to windows!
This simply means that exit() does NOT always return
back to text mode by itself! i HAVE to put the
following line:
screen.settext();
before ANY call to exit!!
is this considered a bug in exit()??? or this is
normal??
Thank you,
Urs forever,
Mohamed El Dawy
P.S. I am not using any libraries! I am using gcc
2.8.0! the program is running in 640*480*65k colors
vesa2 using Scitech display doctor under win98!
P.P.S. NO! in case u think that i have unintentionaly
registered a function using atexit() that sets the
mode back to grx mode, you are wrong! i didn't!! :)
=====
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
- Raw text -