IPhone OS SDK – Use a Zombie to get a better errors about memory allocation

14/04/2010

Just a quick note, theres lots of information about NSZombie (NSZombieEnabled), heres the way to enable them:

1. Project -> Edit Active Executable
Screenshot2010-04-11at13.46.39.Qrxcr6fUafop.jpg

2. Goto the Arguments Tab
Screenshot2010-04-11at13.50.31.LmqbaOs3Zmrh.jpg

Screenshot2010-04-11at13.50.34.zbnOfZ81E3Ob.jpg

  1. Set the Variable NSZombieEnabled and set it to YES (note: its Zombie, not Zombies!)

I’ll leave it as an exercise to find out more about NSZombie, its great for memory debugging.

View Comments