• 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
Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy


  • Subject: Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 30 Mar 2009 23:43:18 -0400

Chris Idou (email@hidden) 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 (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

  • Follow-Ups:
    • Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy
      • From: Chris Idou <email@hidden>
References: 
 >EXC_BAD_ACCESS and NSAttributedString driving me crazy (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: Why does -[NSURLConnection start] crash?
  • Next by Date: Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy
  • Previous by thread: EXC_BAD_ACCESS and NSAttributedString driving me crazy
  • Next by thread: Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy
  • Index(es):
    • Date
    • Thread