• 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: How to disable Apple's Bug Report Dialog when application crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable Apple's Bug Report Dialog when application crash?


  • Subject: Re: How to disable Apple's Bug Report Dialog when application crash?
  • From: David Wilson <email@hidden>
  • Date: Wed, 21 Jul 2004 11:52:18 -0400

On Jul 21, 2004, at 11:02 AM, Goran Predovic wrote:

On Jul 21, 2004, at 4:49 PM, Shawn Erickson wrote:

Seriously what do you want to achieve? A method of catching and reporting crashes of your application back to yourself and hence don't want Apple's dialog to popping up? If so I believe the Omni Group folks have a solution to that one... don't know what it is myself.

Its obviously what I want - to track bugs by myself; when app crashes user fill my bug report dialog and sends it to me.

Getting somewhat low-level here, in main() you could fork() your application. The child process could then run as it always does, but the parent could wait (wait_pid() is the unix call, I believe) for the child to die. You can then look at the return value gotten from wait_pid() to see if the child process shut down normally or died from a signal (term/kill/etc), and then either just close the parent or put up a dialog box.

I believe there's a nice way to get debugging information out of the child, too, but I don't recall it offhand.

-David Wilson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >How to disable Apple's Bug Report Dialog when application crash? (From: Goran Predovic <email@hidden>)
 >Re: How to disable Apple's Bug Report Dialog when application crash? (From: Scott Thompson <email@hidden>)
 >Re: How to disable Apple's Bug Report Dialog when application crash? (From: Goran Predovic <email@hidden>)
 >Re: How to disable Apple's Bug Report Dialog when application crash? (From: Shawn Erickson <email@hidden>)
 >Re: How to disable Apple's Bug Report Dialog when application crash? (From: Goran Predovic <email@hidden>)

  • Prev by Date: Re: Is there such a thing as a global constant (string) in obj-c?
  • Next by Date: Re: Is there such a thing as a global constant (string) in obj-c?
  • Previous by thread: Re: How to disable Apple's Bug Report Dialog when application crash?
  • Next by thread: Re: How to disable Apple's Bug Report Dialog when application crash?
  • Index(es):
    • Date
    • Thread