How to determine where this memory leak is coming from?


How to determine where this memory leak is coming from?



How can I determine where this memory leak is coming from in my code? It doesn't reference anything but the "main" function in my application.

leak image




Performance problems on iPhone using simple graphics

1:



Converting OpenGL Primitives to OpenGLES
It looks like you're trying to use NSZombieEnabled and leaks at the same time.


EXC_BAD_ACCESS error
These two diagnostic techniques don't work together--NSZombieEnabled makes all deallocated objects just stick around, so they will appear as leaks..
casting a NSString to char problem
Simply turn off NSZombieEnabled and you should be set for this case..
Trying to include iPhone OpenGLES headers in C++ code


Is NSTimer auto retained?


Submit ajax form on keyboard close without a submit button on the iphone?

2:



Why does this create a memory leak (iPhone)?
As Joey said; you can't use Zombie Detection and Leak Detection at the same time.. You have Zombie Detection enabled in the Object Alloc instrument.. Turn off zombie detection and Leaks will work again.. The Leaks instrument really should detect this situation, thus I filed <rdar://problem/7139389> and have included a link to this article in the bug report..



88 out of 100 based on 88 user ratings 238 reviews

*