Search code examples
iphoneobjective-cdistributionnszombie

NSZombie on a distributed application


Is there any danger in compiling an application for distribution with NSZombie still enabled? I generally leave it turned on for all of my apps while developing because of how useful it is, but I don't understand the full ramifications and potential issues related to enabling it and leaving it on indefinitely.

Thanks!


Solution

  • If you leave it on, your application will not release all the memory used, so over time, your application will use up all the RAM on the device and be killed by the OS.

    Why would you leave it on if you aren't actually looking for for a memory leak?