I have a problem I can’t locate clearly, maybe you can help me…
I have an iPad project, based on UINavigationController, most (but not all) of controllers inside are instances of UITableViewController, and everything works well…
Everything excepting that my application crashes randomly, sometimes after 10 minutes of use, sometimes after only 10 seconds…
It never crashes on the same view, never at the same time, making that difficult to reproduce.
In addition, it only seams to happen on device, I’ve never got this crash in the simulator.
The debugger doesn’t help me very much, here is what it says:
-[UITableView autorelease]: message sent to deallocated instance 0x8e9800
And here is the call stack:
https://i.stack.imgur.com/JSCHx.png
Any idea ?
Thanks (and sorry for my english)
You’re overreleasing a UITableView somewhere in your code. Are you calling
releaseorautoreleaseon the UITableView inside one of your UITableViewControllers? You should only release objects that you ‘own’. You get to own an object by using methods beginning withalloc,new,copy, orretain.Please read the cocoa memory management guidelines for more info.
Useful links:
http://www.cocoadev.com/index.pl?MemoryManagement
http://www.cocoadev.com/index.pl?RulesOfThumb