he-the-great/Juno-Windows-Class-Library — Issue #3: juno.com.core vs CoInitializeEx
Author: Numpsy
Created: 2011-11-08 14:39:39+00:00
State: open

The juno.com.core module has a static constructor which calls CoInitializeEx.

This is ok when writing a client application, but causes problems when writing a server dll (or possibly a dll in general, as calling CoInitialize during dll startup can cause problems (for example, i wrote a COM addin for Outlook, and that call can make Outlook hang).

I've just removed that setup code from the version of Juno i've been using for the server dll, but doing that in general would require users to call an init function themselves in order to use COM functionality.

Any thoughts?