• 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: dealloc of App Contoller never gets called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >dealloc of App Contoller never gets called (From: Michael Monscheuer <email@hidden>)
 >Re: dealloc of App Contoller never gets called (From: j o a r <email@hidden>)

  • Prev by Date: Displaying color code in stead of colored text?
  • Next by Date: NSTableView reloadData not working?
  • Previous by thread: Re: dealloc of App Contoller never gets called
  • Next by thread: Using custom exposed bindings of custom views in Interface Builder?
  • Index(es):
    • Date
    • Thread