Reputation: 9
Where to find the information about COM threading model used for the OPC client, as part of OPC lab certification process I have to verify that OPC client can be implemented using different COM threading models like Single Threaded Apartment (STA) and Multi-Threaded Apartment (MTA) should be able to connect to server and read data with out fail.
Used below client for testing but not sure what threading model the client was implemented with.
Upvotes: 1
Views: 612
Reputation: 1608
When the COM client and COM server are in different processes, the threading model of the client's object does not "transfer" itself to the server, or have influence on the server side. The server controls the threading model for its own objects. See e.g. http://www.codeguru.com/cpp/com-tech/activex/apts/article.php/c5529/Understanding-COM-Apartments-Part-I.htm . The OPC cert process should recognize it, and apply only in in-process servers (which are, however, practically non-existent in OPC world).
Upvotes: 1