NSKeyedUnarchiver "incomprehensible archive" error
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