Mail Archives: djgpp/1999/10/31/08:54:22
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 -