Re: How to disable Apple's Bug Report Dialog when application crash?
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.