Date: Thu, 6 May 1999 17:02:53 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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?