home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
-
- 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*
-