Re: NSData release seg fault. Whoops.
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