• 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 with 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memcpy with 64 bit


  • Subject: Re: memcpy with 64 bit
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 15 Dec 2009 14:22:41 -0500
  • Organization: Rogue Research Inc.

On 12/15/09 11:46 AM, Jean-Daniel Dupas said:

>«Mac OS X implements a highly-tuned, threadsafe allocation library,
>providing standard implementations of the malloc,calloc, realloc, and
>free routines, among others. If you are allocating memory using older
>routines such as NewPtr or NewHandle, you should change your code to use
>malloc instead. The end result is the same since most legacy routines
>are now wrappers for malloc anyway.»
>
>from http://developer.apple.com/mac/library/documentation/Performance/
>Conceptual/ManagingMemory/Articles/MemoryAlloc.html

I would think one place that using NewHandle() is still the best idea is
when an API requires a handle.  This is the case for many QuickTime
APIs, and the OP did mention using QuickTime.  Another would be the
Alias Manager.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: memcpy with 64 bit
      • From: "gMail.com" <email@hidden>
References: 
 >Re: memcpy with 64 bit (From: "gMail.com" <email@hidden>)
 >Re: memcpy with 64 bit (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Error on third opening of preferences window
  • Next by Date: Re: pls explain rotated iPhone coordinates to me
  • Previous by thread: Re: memcpy with 64 bit
  • Next by thread: Re: memcpy with 64 bit
  • Index(es):
    • Date
    • Thread