Date: Tue, 2 Jul 1996 08:28:12 +0200 (IST) From: Eli Zaretskii To: Serje Beaudoin Cc: djgpp AT delorie DOT com Subject: Re: Compatibility v1.12 vs v2 In-Reply-To: <4r8tju$bv7@tandem.CAM.ORG> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 1 Jul 1996, Serje Beaudoin wrote: > I have a trouble when I try to run 3DGPL and some athers graphic examples, the > system crash when e try to allocate some memory after switching to graphic mode. > > The crash message is : > > General Protection Fault at eip=00003562 > eax=0000003f ebx=00001708 ecx=00003e80 edx=0000003f esi=00058000 edi=d0000000 > ebp=0004f76c esp=0004f764 cs=00af ds=00b7 es=00b7 fs=0087 gs=00c7 ss=00b7 > Call frame traceback EIPs: > 0x00003562 _HW_blit+22, line 69 of hardware.c Can you post the code that's around line 69 of `hardware.c'? Based on the registers I'd guess that it uses absolute address such as 0xd0000 to access the video RAM. This won't work under DPMI, even in v1.x (v2 is DPMI-only environment). You will need to rewrite that code; read section 18.4 of the DJGPP FAQ list (v2/faq200b.zip from the same place you get DJGPP) which explains the methods available to you in v2.0 to achieve this.