delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/06/10:05:07

Date: Thu, 6 May 1999 17:02:53 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Program Initialization
In-Reply-To: <3730fe39.5761339@news.seidata.com>
Message-ID: <Pine.SUN.3.91.990506165455.28615F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 6 May 1999, AnonymityIsGreat wrote:

> Does anyone know how to catch the "No DPMI Server" error?

What do you mean by ``to catch''?  You cannot catch this in your program 
because when the DPMI services aren't available, your program never gets 
to execute; the error message is printed by the 2KB real-mode stub 
prepended to every DJGPP program.  There's no way your program can run, 
precisely because it *requires* DPMI to start execution.

The only thing you can do is examine the program exit code, e.g. from a 
batch file using the "IF ERRORLEVEL ..." clause.  When DPMI services 
aren't available, the program terminates with the exit code of 110.

> I want to give users of my program a better explanation than just 'no
> DPMI - Get csdpmi*b.zip'.

What better explanation can you suggest?

- Raw text -


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