0

Any good tutorials on finding root cause of memory leaks?

I've already got the basics of how to run the leaks aspect of Instruments, and I've read the doco, however I've got leaks with the NSDate object and it seems Instruments points at where the leaky object originally came from, so the actual memory leak could be somewhere else in the chain of events in terms of how the object was used.

Would be keen to know of any good fault finding techniques for the non-obvious memory leaks like this?

Greg
  • 34,042
  • 79
  • 253
  • 454
  • 2
    First of all, have you run "Build & Analyze" in Xcode to see if it catches any memory problems? – jtbandes May 24 '11 at 04:28
  • possible duplicate of [Advice using leaks in instruments for noobs](http://stackoverflow.com/questions/3061241/) or [iPhone Resources to Learn Instruments](http://stackoverflow.com/questions/3861029/) or [how to use instruments while testing?](http://stackoverflow.com/questions/1554526/) or [Understanding iOS Instruments](http://stackoverflow.com/questions/5971608/) or [What are Instruments and where can I find tutorials?](http://stackoverflow.com/questions/3120214) or [Tutorials or videos about Instruments?](http://stackoverflow.com/questions/2267956/) – jscs May 24 '11 at 04:30
  • @jtbandes - thanks - my project already has zero issues from the Build and Analyzse - it's just the leaks that Instruments highlights above & beyond this I'm having to follow up with and finding them a bit difficult to track down – Greg May 24 '11 at 06:18
  • thanks - however I'm already aware of how to use instruments to identify where the leaky object is created - I'm getting re techniques for then after this working out where the root cause of the memory leak then is, and for memory leaks in objects that are highly used, e.g. a NSDate given back from a utility method I have. Not sure if there are any tutorials on this? (I'm probably need to make the question more specific) – Greg May 24 '11 at 06:38

0 Answers0