Re: Determining unreleased objects after Quit
Re: Determining unreleased objects after Quit
- Subject: Re: Determining unreleased objects after Quit
- From: Randall Meadows <email@hidden>
- Date: Wed, 3 Dec 2008 10:06:34 -0700
On Dec 3, 2008, at 9:38 AM, Jon C. Munson II wrote:
Namaste!
In my application, when I choose File->Quit, the application appears
to
terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left
unreleased.
Is there a handy way to determine what the object(s) is(are)?
When your app quits, all of its memory used it released back to the
system. However, your deallocs and such will NOT be called, since
that would be a waste of time since everything's going to be released
back to the system anyway. It's a shortcut, and usually is in your
best interest.
It can, however, bite you in certain situations, specifically non-
memory resources that you need to do something with at termination.
In my case, I needed to release access to a camera, so I had to do
some of my cleanup work in -applicationWillTerminate:.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden