• 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: How do I view the retain count in Xcode's debug window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I view the retain count in Xcode's debug window?


  • Subject: Re: How do I view the retain count in Xcode's debug window?
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 19 Sep 2008 07:53:30 -0600
  • Thread-topic: How do I view the retain count in Xcode's debug window?

> So something like this: override retain, release, and autorelease so
> that every time any of them get called, the object's location in memory,
> its retain count, and its description get written to a log file.  Then
> set up the appropriate environment variables so that I kill the program
> the moment overreleasing happens.  I can then grep for the object in the
> log file via its location in memory, and then try to work out every
> place that it is being retained/released to figure out what is
> happening.

No, override them, set breakpoints, and look at the stack each time to see
what code is retaining & releasing, as it happens. You may see the problem
long before the object is actually over-released.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • RE: How do I view the retain count in Xcode's debug window?
      • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
References: 
 >RE: How do I view the retain count in Xcode's debug window? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Re: Shark + CrashReporter: Missing 95% of symbols
  • Next by Date: Re: Xcode - how to use gcc/g++ 4.2
  • Previous by thread: RE: How do I view the retain count in Xcode's debug window?
  • Next by thread: RE: How do I view the retain count in Xcode's debug window?
  • Index(es):
    • Date
    • Thread