Subject: Re: EXC_BAD_ACCESS and NSAttributedString driving
me crazy

Chris Idou (idou747@xxxxxxxxx) 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?




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)

Help/Unsubscribe/Update your Subscription:

This email sent to maillists@xxxxxxxxx