Mail Archives: djgpp/1996/04/07/01:49:59
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 -