This text is replaced by the Flash movie.

Posts Tagged ‘Xcode Instrument’

NSZombieEnabled Causes memory Leak.

April 10th, 2010

Xcode's InstrumentNoobie Mistake while trying to traced memory leak with the app I am working on using the instrument provided by xcode , I got series of pink spikes,

Xcode's Leaking Instrument

and I'm not sure what was causing it, I thought that the managedObject Context was the culprit. I noticed tons of _NSZombie_ prefix listed and I remember that I added the NSZombieEnabled tag under the Argument in "Executable App Info",

Xcode NSZombieEnabled

I added NSZombieEnabled environment variable because it can be helpful to track down the elusive object causing the problem, mostly tracing the EXC_BAD_ACCESS error message. So after I disabled it, the app I am working on had no leak after all.

Xcode's No Leak Instrument