• 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: try catch not catching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try catch not catching


  • Subject: Re: try catch not catching
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 1 Nov 2006 17:50:32 -0500

On Nov 1, 2006, at 4:49 PM, Jerrod Fowkes wrote:

Uncaught exception: <NSFileHandleOperationException> *** - [NSConcreteFileHandle fileDescriptor]: Bad file descriptor

is the error I am getting

Are you getting that from the code you posted earlier?

@try
{
someNSMutableDictionaryPointer = [[NSPropertyListSerialization propertyListFromData: dataRep
mutabilityOption: NSPropertyListMutableContainers
format: &format
errorDescription: &error] retain];


}

If so, I find that exceedingly odd, given that you're not working with any filehandles in the above. The exception above is what you'd get if you were trying to read from a file that had already been closed, or a problem similar to that.


How are you creating the dataRep NSData instance?

I wasn`t aware that when reading a simple NSPropertyListSerialization from a file wouldn`t throw exceptions.

The above code isn't reading from a file, it's reading from an NSData instance. It might be reading from a file indirectly, if you created the NSData instance with one of NSData's ...withContentsOfMappedFile: creation methods. That's why I'm curious about how you created the NSData instance.


sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.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
References: 
 >Re: try catch not catching (From: Jerrod Fowkes <email@hidden>)

  • Prev by Date: Prevent DVD Player launch
  • Next by Date: Re: Prevent DVD Player launch
  • Previous by thread: Re: try catch not catching
  • Next by thread: Re: try catch not catching
  • Index(es):
    • Date
    • Thread