Crash in background thread dones't affect main thread

Discussion in 'iOS Programming' started by namanhams, Sep 16, 2011.

  1. namanhams macrumors regular

    Jun 3, 2009
    As title. The exception is printed out to the console, but the app is still running.
    Is it the correct thing or do i miss out something ?
  2. Sykte macrumors regular

    Aug 26, 2010
    Please post the crash log maybe even some code? Help us help you.
  3. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    It may be that runtime exceptions are caught in background threads. The @catch could be in your code or a third-party library you're using or in framework code.

    On MacOS X exceptions are caught by the event loop so they don't kill your app. As we all know on iOS in the main thread there is no default @catch block for runtime exceptions. I'm not sure if there is an @catch block in a thread however. I have seen comments like yours though.

Share This Page