"igd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have found out how it works. The Main()-Method must be decorated with
> [STAThread()]. 
>
That means that the native code does not initialize COM (call CoInitialize()), but instead
relies on the caller to have done this before calling into the unmanaged dll, this is not
the correct behavior the native caller is the COM client, so he should initialize COM.
This aside, did you check the COM apartment requirements of the COM server? are you sure it
needs a STA to run in? Maybe it's a 'free' or 'both' threaded COM server which means you
better apply the [MTAThread] attribute.
Willy.