Hi!

I've been around here for quite a while now and found a lot of time saving hints. Thanks a lot!

For the problem I stumbled upon 2 days ago I did not find any suitable hint so any help is greatly appreciated.

Roughly speaking, I developed a multithreaded application that converts some data into a predefined format. Now I have to add another input format that is delievered in form a dll packed API.

When I put something like
Qt Code:
  1. QAxObject *myObj = new QAxObject();
  2. myObj->setControl(CLASS_ID_OF_DLL);
To copy to clipboard, switch view to plain text mode 
somewhere in the main thread everything works fine and I can access the documented methods of the COM Object via dynamicCall(). But the same code in the process() method of another thread will lead to this error message:
Qt Code:
  1. QAxBase::setControl: requested control {....} could not be instantiated.
To copy to clipboard, switch view to plain text mode 
I can't find anything if it is simply not possible to call a COM object from different threads simultaneously or if I'm just to blind to see the solution.

Thanks in advance
Dean