Newbie exception handler question

From: JF Mezei (jfmezei.spamnot_at_teksavvy.com)
Date: 12/15/04


Date: Wed, 15 Dec 2004 11:02:38 -0500

OK, I want a C program to call one of my routines to cleanup stuff under
absolutely ALL circumstances, whether it be a <CTRL-C>, <CTRL-Y>, $FORCEX ,
divide by 0 or other exception, STOP/ID, power failure, atomic bomb, or
unexpected and abrupt end of universe.

Since this program uses the buggy LBR$ routines which corrupt libraries, and
thus needs a kludge to close the library properly, I want to make sure that
the program will execute the appropriate routine should anything force the
image to terminate abnormally.

Is there a simple single call to do this, or must I make a whole bunch of
different calls to set all sorts of various condiction handlers ? Where do I
look ? (routine names) ?

In the event of this handler calling my routines, is there a good description
of any restriction on what such routine can and cannot do and what sort of
environment it runs under (AST ?).



Relevant Pages

  • Re: OT: Yet Another Unhappy Customer for Vista
    ... It could have all sorts of files open, file control/directory blocks ... The support for them by the OS means that such routines ... but a correctly designed journaling file system doesn't need to check ...
    (sci.electronics.design)
  • Re: OT: Yet Another Unhappy Customer for Vista
    ... It could have all sorts of files open, file control/directory blocks ... The support for them by the OS means that such routines ... but a correctly designed journaling file system doesn't need to check ...
    (sci.electronics.design)
  • Re: inspiration
    ... writing. ... Many professionals in all sorts of fields have ... routines that help them get going. ...
    (rec.arts.sf.composition)