Date: Sun, 31 Oct 1999 10:05:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: yaafox cc: djgpp AT delorie DOT com Subject: Re: Problem with DOS and DPMI In-Reply-To: <7vf5qm$i4i$1@front1.grolier.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.