Date: Sun, 25 Feb 1996 14:30:15 +0200 (IST) From: Eli Zaretskii To: Bruce Werdschinski Cc: djgpp AT delorie DOT com Subject: Re: __djgpp_nearptr_enable() return values? In-Reply-To: <199602251101.TAA00644@opera.iinet.net.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.