Einzelnen Beitrag anzeigen

jbg

Registriert seit: 12. Jun 2002
3.483 Beiträge
 
Delphi 10.1 Berlin Professional
 
#4

Re: Einbinden von Forms in .so Dateien möglich?

  Alt 15. Feb 2004, 22:17
Zitat von Assarbad:
Du bist dir sicher, daß du von "Linux"-Libs redest und nicht von Apache-Modulen?!?!
Auch Linux hat "DLL"s (die sog. SharedObjects) und nicht nur Apache Module.

Und die Lösung in diesem Fall heißt: Packages anstatt "normaler" SharedObjects verwenden, denn wie Borland schon in der QForms.pas schreibt:
Zitat:
Delphi-Quellcode:
{
  Restrictions on CLX and TApplication in external modules:
    CLX and Qt allow only a single instance of the application object - it is
    created and destroyed in the initialization and finalization sections of
    QControls.pas, respectively. It is the user's responsibility when using
    external modules (packages and libraries or shared objects) in their
    applications to ensure that only a single instance of TApplication is
    created. Please heed the following rules when mixing modules that rely on
    visual CLX:
    - External libraries (.dll's/.so's) may not refer to visual CLX units
      directly or indirectly.
    - If you wish to include visual CLX code in an external library, the
      external library must be a *package* to avoid duplicate unit
      initialization and finalization.
    - If your package uses the visualclx package, the main application must also
      use it, and should not directly link in visual CLX units.
}
  Mit Zitat antworten Zitat