Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!portal!atari!kbad From: kbad@atari.UUCP (Ken Badertscher) Newsgroups: comp.sys.atari.st Subject: Re: Want pseudo-trap handler examples Message-ID: <2016@atari.UUCP> Date: 1 Feb 90 17:27:01 GMT References: <1990Jan31.153441.7404@chinet.chi.il.us> Organization: Atari Corp., Sunnyvale, CA Lines: 16 saj@chinet.chi.il.us (Stephen Jacobs) asks about critical error and terminate handlers. Intercepting the critical error handler is simply a matter of grabbing logical vector 0x101 using Setexc(), and doing the appropriate thing with the arguments sent to your error handler by the bios. This is documented in the GEMDOS manual in the "extended vectors" section. Grabbing the terminate vector to "recover" from a ^C is not the way to avoid having ^C terminate your application. Use GEMDOS raw i/o (Crawcin() and/or Crawio()) and roll your own string reading routine. -- ||| Ken Badertscher (ames!atari!kbad) ||| Atari R&D System Software Engine / | \ #include