Re: Debugging complex autorelease/release/retain issue
Re: Debugging complex autorelease/release/retain issue
- Subject: Re: Debugging complex autorelease/release/retain issue
- From: Scott Ribe <email@hidden>
- Date: Mon, 27 Nov 2006 10:04:29 -0700
- Thread-topic: Debugging complex autorelease/release/retain issue
> + (id) alloc // Added NSLog to indicate object allocation to console
> - (void) dealloc // Added NSLog to indicate object deallocation to console
> - (id)retain // Added NSLog to indicate retain call, plus show the
> retainCount to console
> - (void)release // Added NSLog to indicate release call, plus show the
> resulting retainCount
You should also add:
- (id) autorelease;
And you might try setting breakpoints on each, so you get not only the stack
trace at each (as per Matt's suggestion re ObjectAlloc), but get to see them
in context as they happen.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden