EXC_BAD_ACCESS message sent to deallocated instance, but I'm using ARC?

Set NSZombieEnabled MallocStackLogging and guard malloc in the debugger. Then, when your App crashes, type this in the gdb console.

Set NSZombieEnabled, MallocStackLogging, and guard malloc in the debugger. Then, when your App crashes, type this in the gdb console: (gdb) info malloc-history 0x543216 Replace 0x543216 with the address of the object that caused the crash, and you will get a much more useful stack trace and it should help you pinpoint the exact line in your code that is causing the problem. See this article for more detailed instructions.

This was helpful to me in tracking down exactly which line/variable was causing the crash, so thanks! – mbm30075 Oct 30 at 19:51 @mbm30075 - Np, Glad I could help! – chown Oct 30 at 20:43.

ARC relies on the Apple standard/recommended naming practices. Check that you are not violating any of them. Just for starters, if "Libraries" is an instance there are are naming issues.

As I mentioned above, I didn't see this naming convention rule. Can you post a link to where you found it? Thanks!

– mbm30075 Oct 30 at 19:52 See: Coding Guidelines for Cocoa – CocoaFu Oct 30 at 19:55.

OK, so I feel a little bit silly, but I've got two production machines. On one of them, I had installed a copy of Xcode 4.2 beta alongside the final, production copy. I forgot to uninstall the beta copy and was using it to run my code.As soon as I cleared that up and ran my code against the final, released Xcode 4.2, all works fine again.

As I mentioned to Jonathan Grynspan above, I DO understand Obj-C memory management. For some reason, I was getting a retain/release/release (performed by ARC), and that bug is remedied in the final version. Thanks for the help in tracking this down!

At least I got a definitive answer to WHY the problem existed!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions