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?
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
The OLE/COM Object Viewer also shows the threading model for components.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With