[comp.sys.mac.programmer] signals, SysError, longjmp, and the like.

ben@duttnph.tudelft.nl (Ben Verwer) (03/05/91)

1. MPW C does not support signals in applications and for tools only SIGINT, 
Think C does (limited though). So how can an application recover from a minor 
system error like zero divide or segmentation violations (sometimes minor)?

2. Call InitDialogs with a resumeprocedure in which a longjmp is made to
somewhere close to the beginning of the program? Not of course THE
beginning since that amount to the same loss of data as a restart of the 
program.  However, SysError seems to mess with the quickdraw environment.
How to solve that problem?

3. Related: in multifinder, SysError is disabled. So recovery is impossible?

---

Ben Verwer                          Lorentzweg 1            tel +31(15)783247
Pattern Recognition Group           2628 CJ Delft           fax +31(15)626740
Faculty of Applied Physics          The Netherlands
Delft University of Technology

---
int O; main(){char*l;if(*(O+++(l="\n!telbuoder"))/*l) exit('-'-'-');
/*(*/)/*(*/main();';';write('='!='!',l+--O,~~'?'?'|'||'|':'+'+'+');}