• 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: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Fri, 19 Sep 2008 08:45:27 -0400
  • Thread-topic: How do I view the retain count in Xcode's debug window?

> -----Original Message-----
> From: email@hidden [mailto:email@hidden]
> On Behalf Of Jonathan del Strother
> Sent: Friday, September 19, 2008 8:24 AM
> To: Karan, Cem (Civ, ARL/CISD)
> Cc: Scott Ribe; xcoders
> Subject: Re: How do I view the retain count in Xcode's debug window?
>
> On Fri, Sep 19, 2008 at 12:55 PM, Karan, Cem (Civ, ARL/CISD)
> <email@hidden> wrote:
> > 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.
> >
> Wouldn't Instruments be a far better way of dealing with that?
> Something along the lines of
> http://www.corbinstreehouse.com/blog/index.php/2007/10/instrum
> ents-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/

That was actually the first thing I tried.  The problem is that the autorelease happens at the end, when the pool is released.  Once
that happens, I know which object caused the problem, but its trying to figure out why it is a problem that is the real problem.
Much of my code is recursive, so tracking down what happened involves analyzing many, many corner cases.  I'll figure it eventually.
Thanks though.

Thanks,
Cem Karan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: How do I view the retain count in Xcode's debug window? (From: Markus Spoettl <email@hidden>)
 >Re: How do I view the retain count in Xcode's debug window? (From: Scott Ribe <email@hidden>)
 >RE: How do I view the retain count in Xcode's debug window? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: How do I view the retain count in Xcode's debug window? (From: "Jonathan del Strother" <email@hidden>)

  • Prev by Date: Re: How do I view the retain count in Xcode's debug window?
  • Next by Date: Shark + CrashReporter: Missing 95% of symbols
  • 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