GetPreviewPNGBitmap not working from second thread

Hello,

my Code that uses GetPreviewPNGBitmap works fine. But when I put it into a backgroundworker (start another thread) I get this error:

Eine Instanz der COM-Komponente mit der CLSID {0BE35204-8F91-11CE-9DE3-00AA004BB851} konnte aufgrund des folgenden Fehlers nicht von der IClassFactory erstellt werden: 8000ffff Schwerwiegender Fehler (Ausnahme von HRESULT: 0x8000FFFF (E_UNEXPECTED)).

The Problem seems to be, that it is not possible to create a instance of stdole.StdPicture, but why?

Any ideas how to solve this?

Any ideas for workaround - other methods to extract a thumbnail?

Samuel

SolidworksApi macros