Date: Tue, 9 Jan 1996 08:46:43 +0200 (IST) From: Eli Zaretskii To: dunder Cc: DJGPP Subject: Re: your mail On Mon, 8 Jan 1996, dunder wrote: > It bugs 'at start'. Go32 v1.11.maint4 reports: > > Segment violation in pointer 0x00000000 at d8:de81 > eax=00020008 ebx=0001d110 ecx=00000000 edx=00000000 esi=00000000 edi=00000000 > ebp=7ffffc88 esp=7ffffc4c cs=d8 ds=48 es=48 fs=48 gs=48 gs38 ss=48 > cr2=00000000 > Call frame traceback EIPs: > 0x0000de81 > 0x00003d45 Recompile your program with -g, run it until it crashes like above, then type this from the DOS prompt: symify progname where `progname' is the name of your program (without .exe). You will then see the filenames and source line numbers of your code where the program bombed. Look at those places and make sure this isn't your bug (like referencing an uninitialized pointer or writing off the array bounds). DJGPP works in protected mode which is much less tolerant to such abuses than a typical 16-bit DOS compiler, so bugs which might go unnoticed in TC will crash your program in DJGPP. If you cannot figure out what the problem is, post the code fragment where the program crashes (using the output of `symify'), and somebody might have an idea or two for you.