Path: utzoo!utgpu!watmath!clyde!att!osu-cis!killer!ames!ncar!boulder!sunybcs!rutgers!ucla-cs!math.ucla.edu!tony From: tony@sonia.math.ucla.edu Newsgroups: comp.sys.ibm.pc Subject: Question regarding MS DOS Critical Error handler (Int 24H) Message-ID: <321@sunset.MATH.UCLA.EDU> Date: 10 Jan 89 08:04:56 GMT Sender: news@MATH.UCLA.EDU Reply-To: tony@MATH.UCLA.EDU () Distribution: na Organization: UCLA Mathematics Department Lines: 24 Does anyone out there have C routines that can detect the DOS critical error (interrupt 24H)? In addition can somebody out there explain how I can go about replacing the generic DOS critical error handler that gives the message "Abort, Retry, Ignore, or Fail" with an error handler that I'd like to write in C (not assembly, I don't have a MASM). I'm trying to detect printer problems using interrupt 17H on my AT Clone with a NEC P6 printer. Everything works fine as long as the printer buffer isn't full. The problems is that if an error occurs once the printer buffer becomes full, MS DOS takes over with the "Abort, Retry, Ignore, or Fail" message before my program can have a chance at detecting the error using DOS interrupt 17H. I therefore would like to just replace the DOS critical error handler with one of my own. I've been trying to use the intdosx() function in MSC 5.1 but after numerous system hang-ups I've decided to ask for help. Please send all replies via e-mail to "tony@math.ucla.edu" for my schedule does not permit me to "rn" that often.