Chris Idou (idou...@yahoo.com) on 2009-03-30 8:25 PM said:

>I'm getting NSRTFDPboardType and NSRTFPboardType objects as NSData from
>the pasteboard and I'm storing them in a core data XML repository and
>getting them out again, and when necessary I'm converting them into
>NSAttributedString with initWithRTF or initWithRTFD. This mostly works
>but every now and then, actually quite often, this initWithRTF(D)
>crashes with EXC_BAD_ACCESS. (stack traces below).
>
>The thing is, I'm doing an md5Hash on the NSData objects every single
>time I store them and retrieve them just to make sure they are not
>corrupted, and the exact same NSData that is working one minute as an
>argument to initWithRTF(D), makes it crash later on.
>
>I'm using garbage collection, but I've solved a lot of GC problems and
>this doesn't seem similar.
>
>Has anyone got any thoughts?

What else have you tried?

<http://developer.apple.com/technotes/tn2004/tn2124.html>

<http://www.sealiesoftware.com/blog/archive/2008/09/22/
objc_explain_So_you_crashed_in_objc_msgSend.html>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to