I’m working on an iPad application I recovered from a previous developer. Sometimes I get the following message :
Received memory warning.
applicationDidReceiveMemoryWarning:
[ResultsListViewController respondsToSelector:]: message sent to deallocated instance 0x2b1c70
and the app stopped at
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
I understood that, after the application received a memory warning, the application is trying to execute a function from a class that was already deallocated. The problem is, as I said, I didn’t developed the application, so I could not find where the problem occurred, even with the NSZombies enabled.
Is there a way to retrieve where the issue occurred, using LLDB (or any other way) with the object memory address (in my case 0x2b1c70)?
Use a symbolic breakpoint, this tutorial shows you how to use them: http://iosdevelopertips.com/debugging/tracking-down-exception-errors.html
Hope this helps!
Sam