I've often found the Clang Static Analyzer to be of great use in these matters though it is still in development and can produce false positives (and miss a few things). Instruments also includes a Leaks tool that can assist in tracking down leaks (be sure to expand the right extended detail view) though it also isn't foolproof as it's possible for an application to leak memory as a result of an action you didn't take while testing in Instruments.

Here's a link to the static analyzer -

http://clang.llvm.org/StaticAnalysis.html

Both tools are very useful but aren't substitutes for a thorough understanding of the rules for memory management.

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html

-rob.

On Feb 11, 2009, at 2:32 AM, Valentin Dan wrote:

Hi,



What tools are there to analyze memory leaks in programs ? Is there
something that would tell the exact location of the leak (the object
that's not being released) ?



Thanks!

_______________________________________________________________________

Valentin Dan, Software Engineer Direct: +1 905 886 1833
ext.3047

Email: valentin....@masstech.com Office: +40 356-710158

Masstech Group Inc. Fax: +40 256-220912

http://www.masstechgroup.com <http://www.masstechgroup.com/>



THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE. IT MAY CONTAIN
PRIVILEGED OR CONFIDENTIAL INFORMATION.ANY UNAUTHORIZED DISCLOSURE IS
STRICTLY PROHIBITED.IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE
NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT THE RECORDS. PLEASE THEN
DELETE THE ORIGINAL MESSAGE. THANK YOU.







_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/wisequark%40gmail.com

This email sent to wisequ...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to