Question

my iphone app crashes unexpectedly and looking at the crash log I can't tell where my code is doing something wrong. All I get in the stack are calls to the framework it's self.

Any help? please!

this is the link to the crash log (rather than copy paste it all here) http://www.megaupload.com/?d=CTWWNUN1

thanks!!!

Was it helpful?

Solution

Looks like you're crashing at mach_msg_trap, the function that handles Objective-C message passing. This is often a sign that you're doing one of two things:

  1. You have a memory management issue somewhere - you're trying to call a selector on an object that's already been released, you're overreleasing an object, or something similar.
  2. You're not being thread-safe in some framework. This can be especially tricky in UIKit (most of the UI* elements that the iPhone uses), where you're not allowed to update the screen from any thread other than the main thread.

Look at using Instruments to check your object allocation and leaks, and double-check that you're respecting thread safety properly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top