• Subject: Re: Cleanup after program failure
  • From: "M. Lazarus" <mlazarus@xxxxxxxx>
  • Date: Wed, 02 May 2001 11:06:05 -0400

Matthias,

At 5/2/01 10:51 PM +1000, you wrote:
>My problem is this: If program B (or the CL) fails for whatever
>reason, program A regains control without the environment having been
>restored to what it should be which could mean disaster.
>
>How can I guard against this situation?

  Assuming that that program B is an ILE program, you can register a 
condition handler which can kick off when program B ends.  You can, of 
course, register an error handler to handle the error side of it.  In your 
case, probably either one would work.

  -mark

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.