Re: Accessing buffers in NSData/NSMutableData under garbage collection
Re: Accessing buffers in NSData/NSMutableData under garbage collection
- Subject: Re: Accessing buffers in NSData/NSMutableData under garbage collection
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 18 Feb 2008 19:42:56 -0800
On Feb 18, 2008, at 7:32 PM, Rick Hoge wrote:
I have to confess that, in my tiny simplified test cases, I can't
replicate a crash by accessing a pointer to the 'bytes' in an NSData
object:
Try turning on MallocScribble (environment variable) and see what
value you retrieve.
Often, when trying to dupe these kinds of problems in minimal code,
everything "just works" as the deallocated memory hasn't been recycled
yet.
b.bum
_______________________________________________
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