Tuesday, October 13, 2009

iPhone dev Stupidity 79: How to track double free

The starting point is from stackoverflow.


It doesn't work for me - when turning the zombie object on, there'll be an exception thrown (instead of print an error log in the console).

For me, the solution are:
1. Device | debug - to print the double freed address
2. Organizer - to view the console message from debug app in iPhone
3. Instrument - Object Allocation

In the organizer, you can find out which 0x######## is double freed. Then you can find that address in the Instrument window, and then the call stack.

No comments: