• 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: Releasing memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Releasing memory


  • Subject: Re: Releasing memory
  • From: Gwynne <email@hidden>
  • Date: Thu, 17 Jun 2004 07:07:19 -0400

On Jun 17, 2004, at 6:37 AM, Peter Fischer wrote:
Is their anyway in x-code/debugger to see the retain count of an object and at the end of a program being run to check everything is released?
It sounds like you want to be able to look at every object that hasn't been released prior to the application terminating. I'm not sure how you would be able to do that without using some of the developer tools provided by apple, or some other third party tool. However, sending an object a retainCount message will tell you how many references there are to that object.

I recommend the leaks commandline tool. "man leaks" from Terminal will give you more information. A useful trick is to set a breakpoint in applicationWillTerminate:, run leaks, and look for anything that wasn't allocated by Cocoa.

-- Gwynne, key to the Code that runs us all
Formerly known as Sailor Quasar.
Email: email@hidden
Web: http://musicimage.plasticchicken.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Releasing memory (From: Michael Curtis <email@hidden>)
 >Re: Releasing memory (From: Peter Fischer <email@hidden>)

  • Prev by Date: Re: A bit confused
  • Next by Date: Re: Properly dealing with images
  • Previous by thread: Re: Releasing memory
  • Next by thread: PMSessionSetDestination 3 results?
  • Index(es):
    • Date
    • Thread