Re: Releasing memory
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.