• 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: Cameron Hayne <email@hidden>
  • Date: Fri, 10 Jun 2005 17:13:16 -0400

On 10-Jun-05, at 5:03 PM, Theodore H. Smith wrote:
I'm open to being told that there really isn't any other way than sleuthing the answer.

As others have said, the easiest way to figure this out is to use the available utilities like ObjectAlloc and the OmniGroup utility.


But the best way is really to slow down and examine your code and make sure you understand for each 'alloc' and 'retain' (or copy) where the corresponding 'release' is in your code (they must be 1 to 1). Similarly, check that you aren't releasing any auto-released objects.

--
Cameron Hayne
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
References: 
 >Re: Am I overreleasing something? (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Resizing Columns
  • Next by Date: Re: NSSavePanel: Hide extension is killing the extension
  • Previous by thread: Re: Am I overreleasing something?
  • Next by thread: More than one externally initialised object in a nib?
  • Index(es):
    • Date
    • Thread