• 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: EXC_BAD_ACCESS in NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC_BAD_ACCESS in NSData


  • Subject: Re: EXC_BAD_ACCESS in NSData
  • From: Pax <email@hidden>
  • Date: Mon, 26 May 2014 17:06:44 +0100

Shameful.  I need more sleep! :-)  I also need to reread my code more carefully before asking questions.

As I say though, I think that the solution I posted is the better solution anyway - since who wants a copy, with the additional overhead that a copy entails, when you don't need to have one?

On 26 May 2014, at 16:33, Roland King <email@hidden> wrote:

> 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


  • Follow-Ups:
    • Re: EXC_BAD_ACCESS in NSData
      • From: Scott Ribe <email@hidden>
References: 
 >EXC_BAD_ACCESS in NSData (From: Pax <email@hidden>)
 >Re: EXC_BAD_ACCESS in NSData (From: Uli Kusterer <email@hidden>)
 >Re: EXC_BAD_ACCESS in NSData (From: Pax <email@hidden>)
 >Re: EXC_BAD_ACCESS in NSData (From: Roland King <email@hidden>)
 >Re: EXC_BAD_ACCESS in NSData (From: Scott Ribe <email@hidden>)
 >Re: EXC_BAD_ACCESS in NSData (From: Roland King <email@hidden>)

  • Prev by Date: Re: UICollectionViewCell and UIScrollView and autolayout
  • Next by Date: Re: UICollectionViewCell and UIScrollView and autolayout
  • Previous by thread: Re: EXC_BAD_ACCESS in NSData
  • Next by thread: Re: EXC_BAD_ACCESS in NSData
  • Index(es):
    • Date
    • Thread