Re: Plugins and shared code question.,
Re: Plugins and shared code question.,
- Subject: Re: Plugins and shared code question.,
- From: Thomas Engelmeier <email@hidden>
- Date: Tue, 26 Jun 2007 12:04:27 +0200
On 25.06.2007, at 07:39, Scott Andrew wrote:
Does this happen because the code is both living in the same
address space and they have the same class names? Can i not share
common code between them? I don't think a framework would solve the
problem since the code would still be loaded into the same address
space. Any suggestions?
Just for clearing up the nomenclature (everything has already been
said in the previous mails):
When any binary is loaded, the mach loader will resolve unresolved
symbols with a preference to already loaded symbols and not "more
probable" references.
That means when for whatever reason plugin A (potentially from an
unrelated 3rd party) exports the symbol _foo (2 parameters C function
*) , plugin B exports and imports _foo (3 parameters C function), and
they get loaded in alphabetical order, B might mysteriously crash.
* C has no name mangling (an feature that adds the parameter types to
the symbol name)
_______________________________________________
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