OLEObject Exception occurs only in thread

Hi everyone

I started to work with xojo just recently.
I have to control an omicron device via an OLE Object.

The strange thing that seems to appear is that when I use OLEObject.invoke("functionname,param) it works just fine within the app.
But when i run this in a seperate thread an OLEExeption [quote]Unknown error: -2147417842, (failed on “functionname”)[/quote] appears.

Any help is very much appreciated.