Re: How to intercept exceptions in Carbon
Re: How to intercept exceptions in Carbon
- Subject: Re: How to intercept exceptions in Carbon
- From: Robert Purves <email@hidden>
- Date: Sun, 12 Aug 2007 07:55:37 +1200
Greg Guerin wrote:
Dieter Oberkofler wrote:
What would be the "best practice" to programmatically intercept
system
exceptions (e.g. EXC_BAD_ACCESS) in a Carbon/C++ based application?
Perhaps the BEST practice is to not cause illegal accesses: i.e.
debug your code.
If you have a valid reason for catching signals that represent fatal
errors, see 'man signal' or 'man sigaction'. The sigaction entry also
lists the signals and their nominal cause, and functions you can
safely
call from handlers.
There really aren't any other ways of catching and responding to
signals,
There is another way. See InstallExceptionHandler() in
MachineExceptions.h
Robert P.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden