[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -gui Uncaught Exception Handler (Was: Getting UTF-8 value of string
From: |
David Ayers |
Subject: |
Re: -gui Uncaught Exception Handler (Was: Getting UTF-8 value of string occasionally fails) |
Date: |
Thu, 14 Oct 2004 17:39:54 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 |
stefan@agentfarms.net wrote:
> What about following redefinition of default exception handler dialog:
>
> [Abort] - same as now
> [Ignore] - log an error and return to the main runloop of the application
This can't be done in the uncaught exception handler. -gui
(NSApplication) would have to actually handle exceptions to be able to
re-run the runloop. (Well unless you re-run the +currentRunloop from
within the uncaught exception handler, but that sounds even scarier :-) )
> [Debug]/[Report] - launch GDB that will attach to the current application
> (simple GDB switch with process id from NSProcessInfo), dump stack, write dump
> to some file or pass it to another crash-watching process somehow and then
> just
> abort. If GDB was running in some predefined terminal application, then keep
> GDB running.
This sounds intriguing but also hard to implement portably. Feel free
to take a hack at it.
Cheers,
David
Re: -gui Uncaught Exception Handler (Was: Getting UTF-8 value of string occasionally fails), Matt Rice, 2004/10/13