Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!oddjob!gargoyle!ihnp4!alberta!sask!lowey From: lowey@sask.UUCP (Kevin Lowey) Newsgroups: comp.sys.ibm.pc Subject: Re: "abort, retry, or ignore?" : help needed Message-ID: <1046@sask.UUCP> Date: 27 Feb 88 23:30:59 GMT References: <2358@chalmers.UUCP> Organization: University of Saskatchewan Lines: 25 Summary: Don't forget to restore the interrupt Oops, I forgot one important point in my last message about trapping the Abort Retry Ignore message. If you do install your own interrupt handler so you can avoid this message, don't forget to re-install the original critical error handler when your program terminates. This includes when your program terminates abnormally, like with a control-C or other runtime error. Again, Turbo Pascal 4.0 does this automatically, and also allows you to add your own cleanup routines which are executed when the program terminates (no matter HOW it terminates). The new Turbo version 4.0 interrupt routines and error handling stuff is quite impressive when compared to the old 3.0 routines. In case you are interested, I posted a TSR program in COMP.LANG.PASCAL a while back which takes over Interrupt 10h (video I/O). Many of the principles in there also apply to this problem of taking over interrupt 24 (the critical error handler). The nifty thing is it is all Turbo 4.0 code, no inline code or assembler required. ______________________________________________________________________________ | Kevin Lowey |The above is the personal opinion of Kevin | | University of Saskatchewan |Lowey. It does not reflect the position of| | Computing Services |the University of Saskatchewan in any way. | | SaskTel: (306) 966-4826 | | | Bitnet:LOWEY@SASK. (preferred) |I am in no way affiliated with any of the | | UUCP: ihnp4!sask!lowey.uucp |above mentioned companies other than U of S| |________________________________|___________________________________________|