www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/30/23:45:24

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:44:14 GMT
Organization: Monash Uni
Lines: 26
Distribution: world
Message-ID: <381baca1.1314922@newsserver.cc.monash.edu.au>
References: <7vf5qm$i4i$1 AT front1 DOT grolier DOT fr>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 941337851 5515 130.194.198.138 (31 Oct 1999 02:44:11 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 31 Oct 1999 02:44:11 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

You need to set the value of _crt0_startup_flag *outside* of the main
function (outside of *all* functions). It is a global variable.

In any case, I hope you realise that this should be considered at best
a temporary fix - if a page 0 access is occurring, there is most
likely a bug in your program.

Davin.

On Sat, 30 Oct 1999 18:15:36 +0200, "yaafox" <yaafox AT club-internet DOT fr>
wrote:

>My program run perfectly with w98's DPMI server but when I
>try do run it in DOS (with CWSDPMI) I see :
>================================================
>Page Fault cr2=10000000 at eip=e75; flags=6
>eax=00000030 ebx=00000000 ecx=0000000c edx=00000000
>esi=0001a44a edi=00000000 ebp=00000000 esp=00002672
>cs=18 ds=38 es=af fs=0 gs=0 ss=20 error=0002
>================================================
>I've tried to put " _crt0_startup_flag=_CRT0_FLAG_NULLOK; "
>in my main() function but it changes nothing.

__________________________________________________________
       *** 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