Hello everyone,
As mentioned in the book ATL Internals, when assign none to COM thread model,
--------------------
If there is no ThreadingModel given in the registry, COM will assume a legacy single-threaded class and access the class object from the process's first STA, creating a new STA is necessary. This protects objects from having to synchronize access to global, static, or instance data.
--------------------
I do not understand why "This protects objects from having to synchronize access to global, static, or instance data"? Any ideas?
thanks in advance,
George
As mentioned in the book ATL Internals, when assign none to COM thread model,
--------------------
If there is no ThreadingModel given in the registry, COM will assume a legacy single-threaded class and access the class object from the process's first STA, creating a new STA is necessary. This protects objects from having to synchronize access to global, static, or instance data.
--------------------
I do not understand why "This protects objects from having to synchronize access to global, static, or instance data"? Any ideas?
thanks in advance,
George