• 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: Accessing buffers in NSData/NSMutableData under garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Accessing buffers in NSData/NSMutableData under garbage collection (From: Gordon Apple <email@hidden>)
 >Re: Accessing buffers in NSData/NSMutableData under garbage collection (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: Accessing buffers in NSData/NSMutableData under garbage collection
  • Next by Date: Re: Accessing buffers in NSData/NSMutableData under garbage collection
  • Previous by thread: Re: Accessing buffers in NSData/NSMutableData under garbage collection
  • Next by thread: Re: Accessing buffers in NSData/NSMutableData under garbage collection
  • Index(es):
    • Date
    • Thread