malloc-history

iPhone - debugging "pointer being freed was not allocated" errors

When over freeing a pointer you may see an error such as "pointer being freed was not allocated" When debugging with the simulator, I add a build argument MallocStackLogging = YES - this allows me to use malloc_history in the terminal to track down where I have over freed a pointer. If I debug on the device with this build argument I ...

pointer being freed was not allocated. Complex malloc history help

I've followed the guides helpfully linked here: http://stackoverflow.com/questions/295778/iphone-debugging-pointer-being-freed-was-not-allocated-errors but the malloc_history is really throwing me for a loop, can anyone shed any light on the following: ALLOC 0x185c600-0x18605ff [size=16384]: thread_a068a4e0 |start | main | UIApplicati...