• 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: Anyone recognise this crash in loadNib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anyone recognise this crash in loadNib?


  • Subject: Re: Anyone recognise this crash in loadNib?
  • From: Chris Suter <email@hidden>
  • Date: Mon, 9 Jul 2007 13:46:58 +1000


On 09/07/2007, at 1:28 PM, Blain Hamon wrote:

Long time listener, first time caller.

Does this look familiar to anyone? With none of my code in the backtrace, it is hard to know where to start.

I couldn't recreate it, and yeah, need more input. Especially on whether or not you've got the build settings for debug or release.


But since loadNibFile:externalNameTable:withZone: doesn't directly address the owner, the first thing to do is check your strings. My wager is that it tried to send a message to what it thought was an NSString, but found a char * instead.

Check your delegates and NSDocument subclasses for a missing @ in front of a const NSString in the windowNibName method.

Because otherwise, there's no crash in the middle of your functions. That means it's some callback is giving a bad answer. WindowNibName and NSString/char * is one example. (Oh! And windowTitle) But I suppose if you have any initWithCoder code, make sure they're sending back a valid id.

If there's no missing @, NSLog any callback you have, printing out the result it's going to return before it returns. That way, if it crashes, you know the last callback used, or better yet, it'll crash at that NSLog, leaving a perfect trail.

Hope this helps.

--Blain.

You clearly missed the fact that he's solved the problem.

Most of the time crashes in objc_msgSend tend to be memory management issues. The easiest way to track these problems down is to enable zombies. It's a bit harder if it's a CF object.

- Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Anyone recognise this crash in loadNib?
      • From: Keith Duncan <email@hidden>
References: 
 >Anyone recognise this crash in loadNib? (From: Andrew Thompson <email@hidden>)
 >Re: Anyone recognise this crash in loadNib? (From: Scott Stevenson <email@hidden>)
 >Re: Anyone recognise this crash in loadNib? (From: "Blain Hamon" <email@hidden>)

  • Prev by Date: Re: Anyone recognise this crash in loadNib?
  • Next by Date: Re: Handling Multiple Document Types
  • Previous by thread: Re: Anyone recognise this crash in loadNib?
  • Next by thread: Re: Anyone recognise this crash in loadNib?
  • Index(es):
    • Date
    • Thread