• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Force an Application to crash : possible ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Force an Application to crash : possible ? (From: Eric Morand <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: Robert Cerny <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: Eric Morand <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: "I. Savant" <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: Eric Morand <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: "I. Savant" <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: Eric Morand <email@hidden>)
 >Re: Force an Application to crash : possible ? (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: Force an Application to crash : possible ?
  • Next by Date: Notification of filesystem changes
  • Previous by thread: Re: Force an Application to crash : possible ?
  • Next by thread: Re: Force an Application to crash : possible ?
  • Index(es):
    • Date
    • Thread