[comp.sys.ibm.pc] Question regarding MS DOS Critical Error handler

tony@sonia.math.ucla.edu (01/10/89)

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.

nts0699@dsacg1.UUCP (Gene McManus) (01/11/89)

From article <321@sunset.MATH.UCLA.EDU>, by tony@sonia.math.ucla.edu:
> Does anyone out there have C routines that can detect
> the DOS critical error (interrupt 24H)?
> 
	I'd also like to be included in this info. Also having trouble
	with building a Critical Error handler with MSC 5.1.

	Thanx...
	Gene


Gene McManus @ Defense Logistics Agency Systems Automation Center,
	       Columbus, OH 43215 (614) 238-9403,    Autovon 850-
UUCP:		{uunet!gould,cbosgd!osu-cis}!dsacg1!gmcmanus
The views expressed are my own, not those of The Agency, or Dept. of Defense