1) Check for a memory leak – Instruments ; Make sure you build your application every time before testing it with instruments since instruments is only run without a build process.

2) Add debugging messages or debug line by line to find where the problem occur – Show debug messages

3) Use NSZombie

4) Go over your code and make sure every alloc / new has one release

5) If you are using code like if (pointer == nil) ; you should also set the pointer to nil right after you release it.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 W2OM - iPhone by code Suffusion theme by Sayontan Sinha