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