• 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: Determining the size of a directory Part 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining the size of a directory Part 2


  • Subject: Re: Determining the size of a directory Part 2
  • From: AndrĂ©as Saudemont <email@hidden>
  • Date: Mon, 25 Oct 2004 16:29:21 +0200

Dominik,

> Did you talk of this? And is the memory leak now repaired?

Yes it is.

> Anyway, I'm getting a *** Uncaught exception:
> <NSFileHandleOperationException> *** -[NSConcreteFileHandle
> readDataOfLength:]: Bad file descriptor
>
> I'm now using readDataToEndOfFile

This is because you're calling readDataToEndOfFile on 'fromDu' which
was returned by fileHandleForWriting and thus cannot be used for input
operations.
What you need is to read the bytes from the NSFileHandle returned by
fileHandleForReading on 'fromPipe', not from the one returned by
fileHandleForWriting.

Andréas

--
http://andreassaudemont.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Determining the size of a directory Part 2
      • From: Dominik Freyer <email@hidden>
References: 
 >Re: Determining the size of a directory Part 2 (From: Dominik Freyer <email@hidden>)

  • Prev by Date: Re: Determining the size of a directory Part 2
  • Next by Date: Re: Determining the size of a directory Part 2
  • Previous by thread: Re: Determining the size of a directory Part 2
  • Next by thread: Re: Determining the size of a directory Part 2
  • Index(es):
    • Date
    • Thread