Re: Is there a way to see who is retaining an object?
Re: Is there a way to see who is retaining an object?
- Subject: Re: Is there a way to see who is retaining an object?
- From: Corbin Dunn <email@hidden>
- Date: Fri, 17 Jun 2005 10:30:49 -0700
2) Since this also could be a bug on my end, does anyone have any
tips on how to debug this? It would seem useful if there was a way
to determine what objects are retaining a given object but, other
than subclassing retain and release to add some NSLog's to find out
*when* the retains and releases are happening I haven't any idea on
whether this might be possible
Hi Rick,
It is very easy to do this!
Run Object Alloc
Be sure to check "also record CF & ObjC reference counting" and "keep
backtraces".
Run your app and do the operations
Find your objects in the list and look at the references -- you can
see the retain/release counts and find out what did a retain without
a release.
--corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden