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: Rick Hoge <email@hidden>
- Date: Sat, 18 Jun 2005 00:15:51 -0400
Thanks again for this detailed recipe - I have a much better idea of
what's happening now.
Much appreciated,
Rick
Oh, and while i'm on the subject, I'll go over how I find memory
leaks using Object Alloc.
1. Start the offending process, turning on retain events
(previously mentioned)
2. Run till in a known state
3. Do the operation that causes the leak once (to setup things)
4. In "Global Allocations", check "Autosort", and click on the
"Current" header
5. Click "Show since mark"
6. Click "Set Mark" on the toolbar.
7. Repeat the offending memory leak operation
Now, you should see all instances still "alive" and potentially
leaked at the top of the list. Then, you can look at who is not
releasing them, and figure out why. Be warned...the appkit caches
some things which may appear to be leaks.
--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