• 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
NSKeyedUnarchiver "incomprehensible archive" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSKeyedUnarchiver "incomprehensible archive" error


  • Subject: NSKeyedUnarchiver "incomprehensible archive" error
  • From: Joe Turner <email@hidden>
  • Date: Thu, 26 Mar 2009 22:14:29 -0500

Hey,

I have an iphone and mac client of my app. To get data between them, I am using NSNetServices. The data is first archived using an NSKeyedArchiver, then unarchived using an NSKeyedUnarchiver. But, sometimes, when it is unarchinving, I get this error "*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)'" But, this doesn't always happen, only 30% of the time.

It seems as though there is some data getting cut off/lost when sent. Is there a way to check if the data can be unarchived, and if not, to try again? Or, is there another way to get around this?

Thanks!

Any help would be much appreciated!

Cheers,

Joe Turner
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Prev by Date: Re: Comparing path strings
  • Next by Date: Re: NSFileManager: can't set group ID on 10.4
  • Previous by thread: Design advice: NSView vs CALayer for subviews
  • Next by thread: AudioToolbox: shift playback position
  • Index(es):
    • Date
    • Thread