delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/31/00:24:50

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with DOS and DPMI
Date: Sun, 31 Oct 1999 02:42:38 GMT
Organization: Monash Uni
Lines: 28
Distribution: world
Message-ID: <381babd1.1106172@newsserver.cc.monash.edu.au>
References: <7vf5qm$i4i$1 AT front1 DOT grolier DOT fr> <R5sbOMm8FK1r8Y5Ac5xHtgdh41F2 AT 4ax DOT com>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 941337756 5515 130.194.198.138 (31 Oct 1999 02:42:36 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 31 Oct 1999 02:42:36 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019