STA or MTA for indirectly used COM Objects
问题 I think I understand the apartment concept and why STA or MTA is used, however a question came up for which I found no solution so far. If my application uses COM Objects under the hood, for example from third party libraries, how do I know if I can use MultiThreaded-Appartment (MTA)? In that case, I have no Idea if those objects are thread safe, so do I need to go with STA, just to be on the safe side? 回答1: Your ability to use certain COM interface pointer on STA or MTA thread code depends