Hi all,
we have an old vb6 DLL that we wish to use in c# .NET 4.0. The dll should reside in a separate thread, so that we can invoke methods from anywhere (initialization is very slow). The thread is STA, declared in a given assembly, referenced by other assemblies (loaded as modules using PRISM framework) When the thread tries to create the VB6 object (using interop, Activator.CreateComInstance or CoCreateInstance), it hangs. If I put the same thread class directly in a WPFApplication, it works fine using Activator or CoCreateInstance.
Any ideas as to why this happens, and what could be done to cure it ?