• 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: { Semi-Newbie } Inverse of +initialize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: { Semi-Newbie } Inverse of +initialize?


  • Subject: Re: { Semi-Newbie } Inverse of +initialize?
  • From: Richard Kendall Wolf <email@hidden>
  • Date: Fri, 11 Oct 2002 18:22:13 -0500

On Friday, October 11, 2002, at 05:01 PM, John C. Randolph wrote:

All this would do is make your app take longer to terminate. There's no point to freeing memory when the app is quitting.

This is the official blessing I was looking for.

I know this will sound weird but, in some environments, this kind of thing really does matter. In NetWare, for example, it is an error (and considered bad practice) not to free every single byte of storage you allocate ... even when the kernel would deallocate the memory anyway. When a NetWare application unloads, it will report, by way of console errors, every single resource that wasn't properly deallocated (if every malloc isn't balanced by a free, you get an ugly error). It might seem stupid, but it keeps you on your toes.

I know NetWare and Mac OS X are very different things, but like I said to a list member offline, every time I assume something will probably be okay, I always feel like an official reality check is in order. :-) Exercising due caution can't be wrong, can it? :-)
_______________________________________________
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: 
 >Re: { Semi-Newbie } Inverse of +initialize? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: contextual menus in finder / cocoa & carbon integration
  • Next by thread: RE: { Semi-Newbie } Inverse of +initialize?
  • Index(es):
    • Date
    • Thread