Re: principalClass crashes
Re: principalClass crashes
- Subject: Re: principalClass crashes
- From: Morgan Winer <email@hidden>
- Date: Wed, 2 Nov 2005 13:32:49 -0500
Chuck, thanks for your reply.
When I switched to NSClassFromString(__) in the plugin, I could avoid
linking in the same classes, and that seems to have solved it. I think
it was an issue with duplicate symbol definitions due to the same
classes being linked in.
Btw, I was using [NSBundle bundleWithPath:thepath];
Thanks,
- Morgan
On Nov 2, 2005, at 1:16 PM, Chuck Soper wrote:
Morgan,
What is the value of pluginBundle? How are you setting it? Please post.
I suggest:
NSBundle *pluginBundle = [NSBundle bundleForClass:[self class]];
Of course, the location of this line is important. What kind of
plug-in are you writing?
Chuck
At 1:29 AM -0500 11/2/05, 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.
Any help would be appreciated,
- Morgan
_______________________________________________
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