• 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: Scott Ribe <email@hidden>
  • Date: Mon, 14 Dec 2009 12:28:05 -0700
  • Thread-topic: memcpy with 64 bit

> Thanks, in the meantime I realized that I had to change imagePtr from int
> into an NSInteger. Now it works. Do you think it is ok?

Well you found the crash, and the code now looks like it is "ok" in terms of
allocating the right amount of memory. But it's still a confusing mess that
is difficult to follow. Why all the casting back and forth between integers
& pointers??? If you need to store an array of pointers, just do so; don't
cast them to integers and then back again.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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: memcpy with 64 bit (From: "gMail.com" <email@hidden>)

  • Prev by Date: Re: App Launches in Finder, Hangs While Launching in Debugger
  • Next by Date: Wierd Crash Report
  • Previous by thread: Re: memcpy with 64 bit
  • Next by thread: Re: memcpy with 64 bit
  • Index(es):
    • Date
    • Thread