Re: How to intercept exceptions in Carbon
Re: How to intercept exceptions in Carbon
- Subject: Re: How to intercept exceptions in Carbon
- From: Greg Guerin <email@hidden>
- Date: Sat, 11 Aug 2007 11:29:55 -0700
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,
so it's left to you to choose between them and decide which one best meets
your intended purpose.
-- GG
_______________________________________________
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