Reputation: 35767
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?
Upvotes: 3
Views: 850
Reputation: 7135
Determine the component's CLSID
from the registry using this key:
HKEY_CLASSES_ROOT\{component's progid}\CLSID
Then lookup the ThreadingModel
using this registry key
HKEY_CLASSES_ROOT\CLSID\{component's clsid}\InprocServer32\ThreadingModel
Upvotes: 7
Reputation: 98984
The OLE/COM Object Viewer also shows the threading model for components.
Upvotes: 3