Category : apartments

Suppose I have a COM object created on an MTA thread (i.e., initialized with CoInitializeEx(NULL, COINIT_MULTITHREADED)). I would like to use said object from some other, arbitrary, thread. For instance, from the thread pool. Since I don’t own this thread, I cannot call CoInitializeEx on it, so technically I cannot use COM. I’ve seen other ..

Read more