PDA

View Full Version : How to know my program has memory leak?




xingworld
Jan 25, 2011, 09:03 PM
How to know my program has memory leak?
thanks!



nickculbertson
Jan 25, 2011, 09:53 PM
http://stackoverflow.com/questions/144261/memory-leak-detection-tools-in-xcode

"straight from Xcode: run -> Start with Performance Tool -> Leaks"

cnstoll
Jan 25, 2011, 10:10 PM
Build -> Build and Analyze is a pretty good way of discovering issues that can cause the leaks, like failing to release something that you've allocated.

xingworld
Jan 28, 2011, 09:13 AM
http://stackoverflow.com/questions/144261/memory-leak-detection-tools-in-xcode

"straight from Xcode: run -> Start with Performance Tool -> Leaks"

Thank you very much.

Build -> Build and Analyze is a pretty good way of discovering issues that can cause the leaks, like failing to release something that you've allocated.

Thank you very much.