Re: Determining the size of a directory Part 2
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