Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#10

AW: ComObj und Thread

  Alt 22. Mai 2014, 10:38
Hab gerade was gefunden in wie weit ist das Aussagekräftig?

Zitat:
On a different note, ComObj calls CoInitialize/Ex only for EXEs, not for DLLs. A DLL's lifetime and threading requirements is a subset of its host application. Therefore, it is the responsibility of the host application to initialize the COM runtime before calling into a DLL application. Explicitly calling CoInitialize/Ex in a DLL can result in unpredictable behavior and nasty runtime failures.
EDIT:
Ok das wars
Innerhalb der DLL hat das keinerlei Auswirkung.
Wenn ich hingegen die Initialisierung in der EXE ausführe bevor ich das Plugin starte funktioniert es.

gruss

Geändert von EWeiss (22. Mai 2014 um 10:49 Uhr)
  Mit Zitat antworten Zitat