Mail Archives: djgpp/1998/05/27/11:28:09
>I'm writing a simple 'touch' program using functions like setftime(),
>_chmod() ..etc.
>It works fine under Win95's dosshell, but when I quit Win95 completely
>into DOS and run it, it goes BOMB. Why????
The most probable cause is something in your program, such as a null
pointer access. Usually these are bugs which remain hidden
in win95 because it has a buggy dpmi virtual memory management :-)
In bare dos you are using another dpmi server (cwsdpmi ?) which
traps the invalid memory access and bombs.
You can have a lot of help looking at those funny numbers printed
when your program crashed. Have a look at faq 9.1 and 9.2 for
more information on this topic (file faq210b.zip).
ciao
Giacomo
- Raw text -