#2
|
|||
|
|||
By default, COM registration for a .NET component is marked with ThreadingModel=Both, and since VBP's builder component runs in an MTA, so will the called component. If you change it to ThreadingModel=Apartment (registry entry is at HKEY_CLASSES_ROOT\CLSID\{your .NET component's guid}\InprocServer32\ThreadingModel; I'm not sure if .NET provides an attribute to change this behavior so it may need to be manually modified), COM should then create an STA for the component and run it there.
|
|
|