• 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: principalClass crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: principalClass crashes


  • Subject: Re: principalClass crashes
  • From: j o a r <email@hidden>
  • Date: Wed, 2 Nov 2005 07:47:11 +0100


On 2 nov 2005, at 07.29, Morgan Winer wrote:

For a certain plugin class, whenever I call the line below, my program crashes.
Class theclass = [pluginBundle principalClass];
From what I can tell from the debugger, with this line included, any other object instantiation is what causes the SIGTRAP.
However, if I step through the code line-by-line until the plugins are loaded, then the rest of the program will run fine.
Is this some sort of weird race condition? A namespace collision? the plugin & app rely on a lot of the same classes.

* Is the principal class set correctly in the Info.plist for that plugin bundle?


* Where do you load your plugins (It might for example be bad to do it from some class' "+initialize" method)? If it's some sort of race, perhaps you can delay / move it?

j o a r


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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >principalClass crashes (From: Morgan Winer <email@hidden>)

  • Prev by Date: Re: Icon in MenuBar
  • Next by Date: How to Create NSEvent for KeyDown Programatically
  • Previous by thread: principalClass crashes
  • Next by thread: Re: principalClass crashes
  • Index(es):
    • Date
    • Thread