Mail Archives: djgpp/1997/07/25/03:17:36
Richard Sim wrote:
>
> What can I say, I'm having the total opposite problem, my game runs under
> Win95 but in DOS it crashes! No Win code, asm or anything, only standard C
> code!
You should remember that Windows 95 itself is a loosing game, because it
allows you to violate the memory without reporting it.
try the following code fragment on W95 and plain DOS:
void violate()
{
char *s,
s = NULL;
strcpy(s,"Hello world\");
}
and see what happens.
To your problem: If you program crashes on DOS it has definitely some
bugs in
it (running OK on W95 does not mean that your program is OK. I had to
learn this)
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -