I am trying to debug the loss of EXC_BAD_ACCESS using NSZombie. My application creates many large objects, although they are not freed up with NSZombie support, which causes the application to crash in seconds. This means that I cannot even crash EXC_BAD_ACCESS before the application crashes due to low memory.
Is there an alternative? Is it possible to include NSZombie in a specific file instead of the entire project? How else can I debug this failure (I know that this is caused by UIGestureRecognizer, but I use a lot of them, so it does not narrow down the problem significantly).
Thanks.
Edit: Thanks for the tip. I think I may have solved the problem and will report after more rigorous testing.
Edit 2: A collaborative question myself, but chose an answer that seems to be a good solution to any such problems in the future.
user470763
source share