Reputation: 43
I've nearly finished my first App but i'm getting a weird EXC_BAD_ACCESS that nearly happens all the time.
Here is the trace :
#0 0x02adba93 in objc_msgSend
#1 0x07022e00 in ??
#2 0x028bcbcd in _CFAutoreleasePoolPop
#3 0x0003999f in -[NSAutoreleasePool release]
#4 0x002e9f84 in _UIApplicationHandleEvent
#5 0x0310dafa in PurpleEventCallback
#6 0x02961dc4 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
#7 0x028c2737 in __CFRunLoopDoSource1
#8 0x028bf9c3 in __CFRunLoopRun
#9 0x028bf280 in CFRunLoopRunSpecific
#10 0x028bf1a1 in CFRunLoopRunInMode
#11 0x002e2226 in -[UIApplication _run]
#12 0x002edb58 in UIApplicationMain
#13 0x0000282e in main at main.m:14
The weird thing is that some times the App start normally, so i really don't understant what's going on and some help would be great :)
Upvotes: 2
Views: 296
Reputation: 118731
You've over-released an object, so when the autorelease pool gets cleared, it's an invalid operation.
Debug it with zombies:
Then run your app again, and check the console — it should tell you what object is being over-released.
Upvotes: 3