• 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: __memcpy crash with [NSData -getBytes:range:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __memcpy crash with [NSData -getBytes:range:]


  • Subject: Re: __memcpy crash with [NSData -getBytes:range:]
  • From: Matt Gough <email@hidden>
  • Date: Fri, 10 Oct 2008 12:53:55 +0200


On 10 Oct 2008, at 11:48, Daniel Kennett wrote:

// Allocate a buffer.
void *buffer = malloc(length);

// Fill the buffer with the requested bytes.
[_data getBytes:buffer range:NSMakeRange(streamPosition, length)];

Are you sure that buffer has actually been created? Maybe you are running out of RAM?


Matt
_______________________________________________

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: 
 >__memcpy crash with [NSData -getBytes:range:] (From: Daniel Kennett <email@hidden>)

  • Prev by Date: Re: KVC Question
  • Next by Date: Re: How do I debug this?
  • Previous by thread: __memcpy crash with [NSData -getBytes:range:]
  • Next by thread: Re: __memcpy crash with [NSData -getBytes:range:]
  • Index(es):
    • Date
    • Thread