STAThread in Backgroundworker

  • Thread starter Alhambra Eidos Kiquenet
  • Start date
A

Alhambra Eidos Kiquenet

Hi misters,

I have introduced a component to my solution that is throwing an exception
about needing to be run in single threaded apartment mode.

This component is created in an async call by a BackgroundWorker object,
which seems to be on a MTA thread. Is there a way for me to get the
BackgroundWorker thread to run in STA mode, or do I have to remove the
BackgroundWorker and hand spin my own async call?

The component is a COM.

Greetings, regards

thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top