Re: NSFileHandle crashes after a loop completes
Re: NSFileHandle crashes after a loop completes
- Subject: Re: NSFileHandle crashes after a loop completes
- From: Chris Suter <email@hidden>
- Date: Sun, 14 Jan 2007 17:50:38 +1100
On 14/01/2007, at 5:37 PM, Matthew Callis wrote:
I have a function to read information from files based on their
extension.
Everything goes fine until it gets to the last file, the method
never Exits
and the program crashes. I cannot see where my error is or if there
even is
an error, I might just be wrong and it's a different error. It goes
through
it's routine if you pass it only the file name and doesn't crash,
but as
expect it doesn't return anything and I don't know why this doesn't
crash
and the other does.
The function to select the file extension and pass along the
fullPath is:
[snip]
Just looking quickly through, it looks like you've got a [Buffer
release] when there shouldn't be. Tip: if you haven't called alloc,
copy or retain you shouldn't be calling release. That might not be
your problem, but it's a problem.
- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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