www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/31/08:54:22

Date: Sun, 31 Oct 1999 10:05:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: yaafox <yaafox AT club-internet DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with DOS and DPMI
In-Reply-To: <7vf5qm$i4i$1@front1.grolier.fr>
Message-ID: <Pine.SUN.3.91.991031100452.2988c-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 30 Oct 1999, yaafox 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

Is this the *exact* message printed when the program crashes?  I'm not
sure it is; please make sure you didn't leave out anything.

Your program commits some terrible atrocity, like overflowing a stack
or some such.  If the program is not too large, please post its source
here.  If its source is larger than, say, 20KB, then add printf
statements to it until you can find the code fragment where it
crashes, and post that fragment.

> I've tried to put " _crt0_startup_flag=_CRT0_FLAG_NULLOK; "
> in my main() function but it changes nothing.

It won't help, because this crash doesn't help because of NULL pointer
dereference.

- Raw text -


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