EXC_BAD_ACCESS with NSOPERATION and ARC?

Set MallocStackLogging guard malloc and (you may have already done this one) NSZombieEnabled in the debugger. Then, when your App crashes, type this in the gdb console.

Set MallocStackLogging, guard malloc, and (you may have already done this one) NSZombieEnabled 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.

See my comment about sho's comment above. While this wasn't solved by using Zombies and malloc, this answer has helped me find two other issues since then :) – ElJay Dec 12 at 21:29.

I have not. I thought using NSOperations was the preferred way of creating background threads that did lots of work. Can you explain why this method would be better than using NSOperations and NSOperationQueue?

– ElJay Oct 29 at 14:20 See stackoverflow. Com/questions/2935007/… – Rickay Oct 29 at 14:23 That doesn't go into why I shouldn't be using NSOperations (which is what the example applications that I have seen on Apple's Dev site use). – ElJay Oct 29 at 14:58 Performance-wise, the difference between threading with NSOperations and performSelectorInBackground is minimal.

I would try performSelectorInBackground, and if that doesn't crash, I would call it better. – Rickay Oct 29 at 15:17 That still doesn't give me any idea of what the problem is. I really want to solve the problem and not just band-aid it.

Thanks though. – ElJay Oct 29 at 21:01.

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