• 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
help with closing file handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with closing file handle


  • Subject: help with closing file handle
  • From: Daniel Luis dos Santos <email@hidden>
  • Date: Fri, 8 Feb 2008 13:06:07 +0000

Hello,

I have the following code :

- (int)useArchive: (NSString*)path {

if (nil == path)
return -1;
NSFileHandle *fileHandle = [NSFileHandle fileHandleForReadingAtPath: path];
if (nil == fileHandle)
return -1;
[fileHandle closeFile];
...


When I run it, while stepping through the closing of the file handle, the gdb window shows the
error :


2008-02-08 11:56:09.166 TesterBundleDebugger[408] *** -[NSCFArray appendString:]: selector not recognized [self = 0x30a9a0]
2008-02-08 11:56:09.167 TesterBundleDebugger[408] *** Uncaught exception: <NSInvalidArgumentException> *** -[NSCFArray appendString:]: selector not recognized [self = 0x30a9a0]


I don't understand what is happening.
Help me.
_______________________________________________

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: help with closing file handle
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Catching Cocoa application Crash
  • Next by Date: NSarrayController count
  • Previous by thread: Re: problem closing file handle
  • Next by thread: Re: help with closing file handle
  • Index(es):
    • Date
    • Thread