8

I need a thread-pool for working with COM objects inside an ASP.NET project.

QueueUserWorkItemSTA(WaitCallback)
Xaqron
  • 29,931
  • 42
  • 140
  • 205

1 Answers1

6

From the CodeProject Article of Smart Thread Pool:

Also note that the .NET ThreadPool doesn't support calls to COM with single threaded apartment (STA), since the ThreadPool threads are MTA by design.

So I assume if you give the Smart Thread Pool a try, it could fit your requirements.

Personally, I use this class successfully since severals years.

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291