delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/27/21:30:03

Date: Thu, 27 Oct 94 17:10:06 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: will AT wrs DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Please, can someone help with async driver under Windows 3.1?
Reply-To: babcock AT cfa DOT harvard DOT edu

> This exception occurs in the program getivec() called by async_init().  It 
> occurs at the line:
> 
> a = (ASYNC_STRUCT *) (0xe0000000 + peek (0, which*4+2)*16 + peek (0,which*4));

Whenever you see the constant 0xe0000000 in a djgpp program, you can be
pretty sure that you have something which will not run under dpmi.  Under
VCPI, the first MB of memory is remapped to this address, but that is not
true under dpmi.  You need to replace this code using either dosmemget() or
the inline functions in sys/farptr.h.

- Raw text -


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