• 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: Plugins and shared code question.,
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Plugins and shared code question., (From: Scott Andrew <email@hidden>)

  • Prev by Date: Re: Play a song with QTMovie
  • Next by Date: Re: Guidance for learner
  • Previous by thread: Re: Plugins and shared code question.,
  • Next by thread: Adding files to iTune library in Cocoa app
  • Index(es):
    • Date
    • Thread