• 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: NSFileHandle crashes after a loop completes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSFileHandle crashes after a loop completes (From: "Matthew Callis" <email@hidden>)

  • Prev by Date: NSFileHandle crashes after a loop completes
  • Next by Date: Re: Replacing NSTextView with custom view?
  • Previous by thread: NSFileHandle crashes after a loop completes
  • Next by thread: NSArrayController selects inserted NSManagedObject with delay
  • Index(es):
    • Date
    • Thread