Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-30-2009, 11:06 PM   #2 (permalink)
Kalimba
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,178
Default

Quote:
Originally Posted by urip View Post
Code:
NSData *data = [NSData dataWithContentsOfFile:path];
Byte *byteData = (Byte*)malloc([data length]);
memcpy(byteData, [data bytes], i);
What is the variable 'i' set to in the memcpy call? Does stepping through the code in the debugger glean any useful information?
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
 

» Advertisements
» Online Users: 716
18 members and 698 guests
ADY, at0m87, ben555, Dalia, Don, fgreg2692log, foolshityella, jakerocheleau, John_smiths, jollyrgr, Khurshid, Mariusz Kowalczyk, PeterBishop, shiv@globussoft.com, suresk, ujtordai, yufengts
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,632
Threads: 89,149
Posts: 380,345
Top Poster: BrianSlick (7,110)
Welcome to our newest member, foolshityella
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:53 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.