Does the Marshal need a COM object to support the Both thread model

We get in-proc-server (.dll) with the "Both" thread model. I noticed a stream processing model in the registry editor. As we know, a com-object created using "Both" will take the model of the stream stream into which the object creates. I created an object in the STA thread to make sure that the call to the com object should go through only one thread. I called the methods of these objects from the child stream in a serialized way when the object was actually created in the main thread (STA)

will there be any side effects?

I did not get any errors and did fine when I used the object in the child stream without any sorting (GIT).

now my doubt is how this happens. I did not receive an answer to the question of when I google. please give me a brief description abt this

in my understanding, sorting an object is required if the object supports "STA", is that so? here our object supports "Both".

+2
source share
2 answers

. , , . , CoInitializeEx(), STA, CoCreateInstance() - STA, . , . , CoInitializeEx() , . , .

, . , . , . COM Both, , . , , .

+2

, . . , ( , ..). .

0

All Articles