Error when accessing a COM dll with Threading Model Apartment from Multithread Apartment
问题 I have to communicate with a third party application and the only way to do so is by accessing the provided COM component. Because the interaction takes about 3 minutes it's mandatory that it takes place in the background. So what i tried to do is to add a reference the component with option "embedd interop-types" = true and to create a test that reads very basic data through the interface. The documented way to do so is by following Code: System sys = new System(); if(Convert.ToBoolean(sys