• 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: Memory leak if alloc succeeds but init fails?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak if alloc succeeds but init fails?


  • Subject: Re: Memory leak if alloc succeeds but init fails?
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 01 Oct 2007 07:59:33 -0700


On Oct 1, 2007, at 7:45 AM, Jeremy Hughes wrote:

For example, C++ memory allocation automatically throws an exception if
the memory could not be allocated. There is no result that you can check.

..unless you turn off exceptions or that feature. Then you check for NULL.


-Shawn
_______________________________________________

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


References: 
 >Re: Memory leak if alloc succeeds but init fails? (From: Wincent Colaiuta <email@hidden>)
 >Re: Memory leak if alloc succeeds but init fails? (From: "Jeremy Hughes" <email@hidden>)

  • Prev by Date: mail-in db/app
  • Next by Date: Re: Distributed GUI
  • Previous by thread: Re: Memory leak if alloc succeeds but init fails?
  • Next by thread: Re: Memory leak if alloc succeeds but init fails?
  • Index(es):
    • Date
    • Thread