Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Duke Leto

macrumors regular
Original poster
In anther thread, it seems that people know which lines of code leak. How is it possible to determine where exactly the leak is. I am using Instruments, but it only tells me that I am leaking an Array somewhere.
 
Debug memory leaks (one way) is to run your app using "Run/Start with Performance Tool/Object Allocations"

If you see allocations go up but not come back down .... You may have a leak...
 
In anther thread, it seems that people know which lines of code leak. How is it possible to determine where exactly the leak is. I am using Instruments, but it only tells me that I am leaking an Array somewhere.

In Instruments, hover the mouse over the Array (or whatever object) that is leaking. You'll see a ">" icon appear next to it. Click on that to drill down. Eventually it will lead you to the exact line in your code that is leaking.

It's *very* useful!

Tom
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.