• 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: Am I overreleasing something?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Am I overreleasing something?


  • Subject: Re: Am I overreleasing something?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Fri, 10 Jun 2005 15:17:00 +0100

I suppose this means that I'm overreleasing something, right?

If so, what's a good technique to track this down (Apart from stepping through every line of code, which I always do)? Is there someway to make the release pool release early, so that I can narrow down the bug to a specific area of my code?


No, but you can find out what kind of object it is that's getting over-released. Check out NSZombieEnabled


http://developer.apple.com/technotes/tn2004/tn2124.html#SECFOUNDATION

I suppose the other way is to avoid using autorelease, entirely, and use release whereever possible. At least that way I'll get my errors as soon as possible.
_______________________________________________
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: Am I overreleasing something?
      • From: Glen Simmons <email@hidden>
References: 
 >Am I overreleasing something? (From: "Theodore H. Smith" <email@hidden>)
 >Re: Am I overreleasing something? (From: Glen Simmons <email@hidden>)

  • Prev by Date: Re: xcode keeps crashing when i compile
  • Next by Date: Re: Newbie-Question: Sorting Arrays
  • Previous by thread: Re: Am I overreleasing something?
  • Next by thread: Re: Am I overreleasing something?
  • Index(es):
    • Date
    • Thread