• 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: converting HTML causes crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: converting HTML causes crash


  • Subject: Re: converting HTML causes crash
  • From: Rod Schmidt <email@hidden>
  • Date: Fri, 13 Jun 2008 23:58:20 -0600

Yes, that is what's happening, but I am puzzled as to why it only happens when I call initWithData:... or initWithHTML:... and the object it's trying to send a message to has nothing to do with the HTML conversion code.

Rod

On Jun 13, 2008, at 9:18 PM, Jens Alfke wrote:


On 13 Jun '08, at 4:22 PM, Rod Schmidt wrote:

later on I get an EXC_BAD_ACCESS. Here's the stack trace where it usually happens (sometimes its different):

#0	0x911546e8 in objc_msgSend
#1	0x9331aed9 in _NSValuesAreEqual

A crash in objc_msgSend almost always means something's tried to message an already-dealloced object. In other words, you have a ref- counting error in your code, and too many -release messages got sent to the object in question, causing it to be dealloced even though the table still had a reference to it.


For discussion and debugging tips, see Q&A 1367 "Finding EXC_BAD_ACCESS bugs in a Cocoa project". (Which is an odd title; I've never had trouble _finding_ them, it's _fixing_ them that's hard.)

file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/qa/qa2004/qa1367.html

—Jens

_______________________________________________

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: converting HTML causes crash
      • From: Jens Alfke <email@hidden>
References: 
 >converting HTML causes crash (From: Rod Schmidt <email@hidden>)
 >Re: converting HTML causes crash (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: xml parsing
  • Next by Date: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • Previous by thread: Re: converting HTML causes crash
  • Next by thread: Re: converting HTML causes crash
  • Index(es):
    • Date
    • Thread