Re: dealloc of App Contoller never gets called
Re: dealloc of App Contoller never gets called
- Subject: Re: dealloc of App Contoller never gets called
- From: Scott Ellsworth <email@hidden>
- Date: Mon, 24 Nov 2003 13:37:27 -0800
On Nov 21, 2003, at 10:43 AM, j o a r wrote:
Feature.
When the application is terminated there is no reason to waste time
deallocating each and every object separately. All memory used by the
application will be cleaned up and reclaimed by the OS in any case. You
cannot leak memory after your application is quit.
I would not mind the equivalent of NSZombieEnabled
(NSSlowDeallocOnTerminate?) that did walk the autorelease chain and
free everything, with a companion report of all extant objects the
system knows about. The memdebug utility from Metrowerks did this in
the C++ days, and I found quite a number of memory leaks this way.
It is true that an object lying around at the end of execution will be
reclaimed, but every once in a while, those objects are really evidence
of a badly written dispose method. While it is true that one can fake
this with code in your apps quit method, having a system wide service
does make it a lot easier to trap these leaks.
If you agree, file a feature request bug. Not every will, I suspect.
Scott
_______________________________________________
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.