delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/02/01:32:44

Date: Tue, 2 Jul 1996 08:28:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Serje Beaudoin <bofort AT cam DOT org>
Cc: djgpp AT delorie DOT com
Subject: Re: Compatibility v1.12 vs v2
In-Reply-To: <4r8tju$bv7@tandem.CAM.ORG>
Message-Id: <Pine.SUN.3.91.960702082213.18998E-100000@is>
Mime-Version: 1.0

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. 

- Raw text -


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