Re: Force an Application to crash : possible ?
Re: Force an Application to crash : possible ?
- Subject: Re: Force an Application to crash : possible ?
- From: John Stiles <email@hidden>
- Date: Thu, 12 Jan 2006 10:33:33 -0800
On Jan 12, 2006, at 8:59 AM, Camillo Lugaresi wrote:
On 12/gen/06, at 10:16, Eric Morand wrote:
NSException works exactly as I needed ! :o)
There is just one problem : the crash report of MacOS X (even with
Unsanity Smart Crash Report) doesn't present the exception
informations (name, reason,...).
Pretty useless to receive a crash log without the reason of the
crash, no ?
Write a global exception handler that does what others have
suggested: display an application-modal alert explaining to the
user that the application will have to be terminated because of an
error condition, with a field showing the report that will be sent
to you, a default button to send it, and an alternate button that
quits wihout sending the report.
Assuming, of course, that the exception is not so bad that it makes
displaying an alert impossible... :-)
That's why your error reporter needs to be a separate .app inside the
bundle. :)
To really get it right, there are a lot of little things which add up
to a non-trivial amount of work.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden