• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugging complex autorelease/release/retain issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Debugging complex autorelease/release/retain issue (From: Skip Haughay <email@hidden>)

  • Prev by Date: Should I do loops in reverse order ?
  • Next by Date: Re: Should I do loops in reverse order ?
  • Previous by thread: Re: Debugging complex autorelease/release/retain issue
  • Next by thread: Re: Debugging complex autorelease/release/retain issue
  • Index(es):
    • Date
    • Thread