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 02-08-2010, 02:49 PM   #4 (permalink)
Helmut Forren
Registered Member
 
Join Date: Feb 2010
Posts: 4
Default

Quote:
Originally Posted by softak View Post
1. You should not "retain" objects you did not "alloc".
Remove "[myRecordPath retain];"

2. check if recordFileHandle != nil

3. restart your phone, may be file was not released properly before.

4. File should exist before you can open it with "[NSFileHandle fileHandleForWritingAtPath:recordFilePath];"
Thanks. This got me going to the next step.

1. FYI, I didn't think the retain was necessary, but got it from borrowed code.

2. recordFileHandle was indeed nil, but because I never created file. I put back in the commented-out code to create file. Then recordFileHandle still nil due to a snafu creating pathnamepathname [sic]. After fixing pathname, recordFileHandle came back non-nil

3. I did restart the phone, but the above was the cause.

4. File not previously existing plus filename snafu were my problems.

Thanks.
Helmut Forren is offline   Reply With Quote
 

» Advertisements
» Online Users: 339
15 members and 324 guests
acegames, ADY, BdR, catedawn, ChenXin, Darmanikles, dfvdan, gagack, iph_s, MarkC, RoryHarvey, technovelty, thebinaryfamily, zacharyse, zbynda
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,874
Threads: 89,225
Posts: 380,699
Top Poster: BrianSlick (7,129)
Welcome to our newest member, catedawn
Powered by vBadvanced CMPS v3.1.0

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