www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/07/01:49:59

Date: Sun, 7 Apr 1996 09:36:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Lee Braiden <Lee_B AT Celestia DOT dnet DOT co DOT uk>
Cc: djgpp AT delorie DOT com
Subject: Re: Critical Error Handler
In-Reply-To: <4jvore$3pb@daneel.dnet.co.uk>
Message-Id: <Pine.SUN.3.91.960407093157.22284Q-100000@is>
Mime-Version: 1.0

On Thu, 4 Apr 1996, Lee Braiden wrote:

> I'm pretty sure I've seen this question here before, but it's not in
> the FAQ, and it's not showing up in the mail search, so..

If you don't see it in the mail search, it most probably wasn't asked
here. 

> How do I trap the DOS critical error interrupt ?

You just hook it.  Int 24h is one of the few software interrupts that are 
reflected to protected mode even when they happen in real mode.  But be 
aware that there are differences between DPMI hosts on the handling that 
Int 24h gets, so test your code under as many DPMI servers as you can.
Btw, many DPMI servers just fail the call that caused Int 24h (you 
shouldn't see the ``Abort/Retry/Fail'' message), so you might even not 
need hooking it at all.

- Raw text -


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