Problem with COM with .NET Interop and Apartments
I've written a simple in-process COM library, with the coclass, the type library and the one interface present therein registered in the registry. The type library is embedded as a resource within the COM DLL.
I'm having problems using it in a couple of STA threads in .NET. I can import it and use it from the 1st (GUI) thread, but not the secondary thread. (Some QueryInterface / System.InvalidCastException error).
What is the best forum to elaborate on this problem? I'm not entirely sure whether the problem lies in my COM object or my usage of .NET.
Thanks
Daniel

