Mail Archives: djgpp/1999/10/31/00:24:50
On Sun, 31 Oct 1999 01:33:19 GMT, Damian Yerrick
<DELCAPSyerricde AT pineight DOT 8mSOFTWARE DOT com> wrote:
>Page Fault in Sandmann's CWSDPMI not in Micro$oft's DPMW32
>
>This means you are accessing an address below 0x00001000. The most
>common reason is you are dereferencing a NULL pointer. Run symify on
>the traceback (should be below the register dump) and see if you can
>pinpoint the error. If not, send us the symify output.
Read his post, particularly this part:
On Sat, 30 Oct 1999 18:15:36 +0200,
"yaafox" <yaafox AT club-internet DOT fr> wrote:
>I've tried to put " _crt0_startup_flag=_CRT0_FLAG_NULLOK; "
>in my main() function but it changes nothing.
You are right, he probably *is* accessing and address below 0x1000,
but he had obviously realised that. CRTo_FLAG_NULLOK should stop that
from causing a page fault, even in CWSDPMI - his problem is that he
has set its value programatically rather than statically.
Davin.
__________________________________________________________
*** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/
- Raw text -