• 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 object lifetimes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging object lifetimes


  • Subject: Re: Debugging object lifetimes
  • From: Joseph Heck <email@hidden>
  • Date: Mon, 6 Mar 2006 20:34:51 -0800

It's not quite as nice as that method name, but I recommend you check out NSZombieEnabled. Some detail to be spotted in the Cocoa-dev wiki (http://www.cocoadev.com/index.pl?NSZombieEnabled), but the real meat is in TN 2124 (http://developer.apple.com/technotes/tn2004/tn2124.html)

Very handy for tracking down those over-deallocations.

-joe

On Mar 6, 2006, at 7:57 PM, Scott Ribe wrote:
Does Cocoa have anything like a
"appearsToBeADanglingPointerToARecentlyDeallocedObject" method???

I have a workflow app, where updates are being "flung" around the network in
an asynchronous manner and the UIs update to reflect the incoming data. I am
unable to reproduce the problem here, so I can't just run a good test case
with MallocDebug or other tools--something about 10 users at customer site
vs me trying to simulate multiple users... Anyway, it looks like I may be
managing to use NSInvocation on a dealloc'd object.


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


_______________________________________________ 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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Debugging object lifetimes
      • From: Scott Ribe <email@hidden>
References: 
 >Debugging object lifetimes (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: quit on restart even with sheet?
  • Next by Date: Attempting to draw upon a CGLayer upon a NSView
  • Previous by thread: Debugging object lifetimes
  • Next by thread: Re: Debugging object lifetimes
  • Index(es):
    • Date
    • Thread