Mail Archives: djgpp/1999/05/06/10:05:07
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 -