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
Mar 17, 2008
166
0
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.
 

dgdosen

macrumors 68030
Dec 13, 2003
2,772
1,409
Seattle
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...
 

SwampThingTom

macrumors member
Jul 12, 2008
37
0
Fairfax, VA
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.