Create COM object in a separate thread

I create a worker thread in an MFC GUI application.In the thread I do CoInitialize and then try create a COM object. The CreateInstance hangs until the main thread is busy doing some processing and comes back only after the main thread is idling.
Any other processing goes in parallel in both threads with no problems. How can I create a COM object in the worker thread while the main thread is doing some processing as well? Thank you
That shouldn't be the case. It's common practice to do this. There must be something unique to your environment (or the object) that's causing this.
I forgot to mention that the object I'm having problems with is derived from CCmdTraget. I don't have a problem with other COM objects
Topic archived. No new replies allowed.