Article View: comp.sys.ibm.pc.misc
Article #306Re: URGENT!!! HELP NEEDED WITH INT 24 FAILURE OVERRIDE !!!!
From: Flint
Date: Fri, 24 Jul 1992 17:40
Date: Fri, 24 Jul 1992 17:40
47 lines
1528 bytes
1528 bytes
Hi again, further to my plea for help...
Let me thank all those who replied with solutions. 'tis much appreciated.
(Un)fortunately I stumbled across the solution shortly after the posting.
For those who are interrested.. the solution in quick C is..
#include <dos.h>
void far myroutine(void);
main()
{
_harderr(myroutine); /* this bit redirects the vector */
/* rest of stuff */
}
void far myroutine(){
printf("This is my error routine..\n");
/* then to return from this fuction.. use */
_harderr(0); /* the 0 is the error return value */
/* Or to go on to use the built in interrupt routine */
_hardresume(num); /* num specifies what sort of critical error
response to give/prompt for */
}
I hope this helps those who have similar problems....
(Note the inclusion of the number in returning from harderr.. I omitted that
what I replied to those who emailed me personally.)
Cheers,
Ian Coggins
PS.. Thanks to adam, who mailed me, but I couldn't reply to as the mailer
retunred it as unknown... *sigh*
Technical Details
Message-ID:
<jt7mb237@csv.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!esudhReferences:
<9j6mbf7x@csv.warwick.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!esudh From: esudh@warwick.ac.uk (Flint) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: URGENT!!! HELP NEEDED WITH INT 24 FAILURE OVERRIDE !!!! Message-ID: <jt7mb237@csv.warwick.ac.uk> Date: 24 Jul 92 17:40:30 GMT References: <9j6mbf7x@csv.warwick.ac.uk> Sender: news@csv.warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 47 Nntp-Posting-Host: lily