views:

28

answers:

2

I have a COM library I should use in my ASP.NET MVC application. However I am unsure about its thread apartment model. How can I determine it?

+3  A: 

Determine the component's CLSID (HKEY_CLASSES_ROOT\{component's progid}\CLSID key in the registry). Then lookup HKEY_CLASSES_ROOT\CLSID\{component's clsid}\InprocServer32\ThreadingModel.

Kyle Alons
BINGO. Thank you.
Jakub Šturc
+1  A: 

The OLE/COM Object Viewer also shows the threading model for components.

Georg Fritzsche