www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/25/07:41:18

Date: Sun, 25 Feb 1996 14:30:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bruce Werdschinski <bruiser AT iinet DOT net DOT au>
Cc: djgpp AT delorie DOT com
Subject: Re: __djgpp_nearptr_enable() return values?
In-Reply-To: <199602251101.TAA00644@opera.iinet.net.au>
Message-Id: <Pine.SUN.3.91.960225142645.5408A-100000@is>
Mime-Version: 1.0

On Sun, 25 Feb 1996, Bruce Werdschinski wrote:

> I've just started using near pointers to access the VGA card, and I'm not
> having any problems, thanks to the FAQ :)  And I know to check for a
> non-zero return value from
> __djgpp_nearptr_enable(), but what I would like to know is if an error does
> occur calling this function, why would that be?  I'm writing a function
> returning an error message to the user if it doesn't work, but I'd like to
> know what I should suggest to the user to make my killer app work?  Thanks
> for your time.

Some DPMI hosts won't allow you to set segment limit to -1.  The only 
cure is to switch to another DPMI host, but even this might be a useless 
piece of advice to your users, since typically such DPMI servers are the 
*only* available ones in that particular environment.  An example is the 
DOSEmu DOS emulator which runs on Linux systems.

- Raw text -


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