Re: __memcpy crash with [NSData -getBytes:range:]
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