Reputation: 4301
I'm in the process of ironing out a few memory allocation issues in my iPad app and have spent a long while watching CFString
grow and grow and grow (as a still living object) under the zombies instrument, it wasn't until I switched to the Leaks or allocations instrument that I noticed it doesn't grow much at all (created and still living remains stable throughout) can anyone explain why this is happening in zombies but not leaks or allocations instrument, its making me wonder if CFString
is an issue or just a false positive thrown up by zombies ....
Upvotes: 2
Views: 1106
Reputation: 89232
Zombies specifically doesn't release memory so that you can see if you are accessing memory after you release it. You can't try to detect leaks while using zombies.
Under the Zombies instrument, you should just be trying to detect zombies. The rest of the behavior of your application isn't necessarily going to be the same. To maximize the chance that you detect accessing a zombie, non-standard allocators might be used.
Upvotes: 3