views:

28

answers:

2

I am using xcode 3.2 and I have leaks in my app but how can I find the line in my code which is leaking?? In earlier version of xcode I just used to double click on the object in the instrument which used to show the xcode with pointing the line with the leak. But in the 3.2 version I am not able to do that. Please anyone tell me how to find the line where memory is leaking?

Any help would be appreciated.

A: 

You're probably working on 10.6, then you can use the extremely cool Build & Analyze feature (shift+cmd+a or in the menu Build->Build & Analyze).

Tim van Elsloo
This is a good suggestion, but doesn't answer the posters question. Personally I find the LLVM analyser misses a lot - so it's best to use *both* tools.
Phil Nash
I have used it already. Analyser is not showing me the leaks but instruments is showing me leaks.
Ideveloper
A: 

In addition to my comments on your question, you might also find this helpeful (it was top link on the "Related" list on the right hand side of this page):

http://stackoverflow.com/questions/728088/instruments-leaks-not-showing-my-source-code

Phil Nash