Re: EXC_BAD_ACCESS in NSData
Re: EXC_BAD_ACCESS in NSData
- Subject: Re: EXC_BAD_ACCESS in NSData
- From: Roland King <email@hidden>
- Date: Mon, 26 May 2014 23:33:27 +0800
Too true. That was a lot of bugs in 4 lines!
> On 26 May, 2014, at 11:18 pm, Scott Ribe <email@hidden> wrote:
>
>> On May 26, 2014, at 9:05 AM, Roland King <email@hidden> wrote:
>>
>> The first one of those is ok...
>
> No, it's not--take a closer look ;-)
>
>> unsigned char* databuffer = (unsigned char*)malloc(datasize);
>> [datastream getBytes:&databuffer range:NSMakeRange(positionCounter, datasize)];
>
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
_______________________________________________
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