NSKeyedUnarchiver "incomprehensible
archive" error



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 (Cocoa-dev@xxxxxxxxxxxxxxx)

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:
http://lists.apple.com/mailman/options/cocoa-dev/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx

...



Privacy