• 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: Crashing on all relevant exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashing on all relevant exceptions


  • Subject: Re: Crashing on all relevant exceptions
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 7 Aug 2006 19:38:54 -0600


On Aug 7, 2006, at 6:28 PM, Shaun Wexler wrote:

static void MyUncaughtExceptionHandler(NSException *exception)
{
    // handle the exception
}

int main(int argc, char *argv[])
{
    NSSetUncaughtExceptionHandler(MyUncaughtExceptionHandler);
    return NSApplicationMain(argc, (const char **)argv);
}

It's been a while since I tried that, but when I did, it only worked in threads other than the main thread since NSApplicationMain() handles exceptions in the main thread. Has this changed at all lately?


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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
  • Follow-Ups:
    • Re: Crashing on all relevant exceptions
      • From: Shaun Wexler <email@hidden>
References: 
 >Crashing on all relevant exceptions (From: Aaron Jacobs <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Nick Zitzmann <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Aaron Jacobs <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Nick Zitzmann <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Aaron Jacobs <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Context menu over WebView always showing up in bottom left corner of screen
  • Next by Date: A Question of Style
  • Previous by thread: Re: Crashing on all relevant exceptions
  • Next by thread: Re: Crashing on all relevant exceptions
  • Index(es):
    • Date
    • Thread