• 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: NSData release seg fault. Whoops.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData release seg fault. Whoops.


  • Subject: Re: NSData release seg fault. Whoops.
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 19 Jan 2009 23:44:18 -0500

On Mon, Jan 19, 2009 at 11:39 PM, nik heger <email@hidden> wrote:
> I figured out how to make this code "work" but I still don't know what the
> problem was. Can someone enlighten me?

+dataWithBytesNoCopy:length: is not +alloc.  Therefore you don't own
it.  If you turn around and release it, you are violating the memory
management rules.

--Kyle Sluder
_______________________________________________

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: 
 >NSData release seg fault. Whoops. (From: nik heger <email@hidden>)

  • Prev by Date: Re: real noob question
  • Next by Date: Custom Cocoa Component/Control
  • Previous by thread: NSData release seg fault. Whoops.
  • Next by thread: Custom Cocoa Component/Control
  • Index(es):
    • Date
    • Thread