• 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: Unarchiving issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unarchiving issues


  • Subject: Re: Unarchiving issues
  • From: Graham Cox <email@hidden>
  • Date: Tue, 3 Aug 2010 03:56:51 +1000

On 03/08/2010, at 3:46 AM, James Maxwell wrote:

> 		continuations = (float*)[aDecoder decodeBytesForKey:@"continuations" returnedLength:&size];


I expect the returned bytes are autoreleased. The docs don't state this explicitly, but the similar method -decodeBytesWithReturnedLength: states "If you need the bytes beyond the scope of the current autorelease pool, you must copy them.".

Try it and see if it solves the issue, sounds like a straightforward memory bug.

--Graham

 _______________________________________________

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: Unarchiving issues
      • From: James Maxwell <email@hidden>
References: 
 >Unarchiving issues (From: James Maxwell <email@hidden>)
 >Re: Unarchiving issues (From: Michael Ash <email@hidden>)
 >Re: Unarchiving issues (From: James Maxwell <email@hidden>)

  • Prev by Date: NSOpenSavePanelDelegate mounting all drives of a server
  • Next by Date: Re: Unarchiving issues
  • Previous by thread: Re: Unarchiving issues
  • Next by thread: Re: Unarchiving issues
  • Index(es):
    • Date
    • Thread