Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

COM provides support for various threading and process models.

Multiple threads should not access ActiveX controls, which have thread affinity because of their use of thread-specific resources.

Because the COM implementation does not support apartment threading, you cannot implement data synchronization with an apartment-threaded singleton. Instead, you must make explicit calls to thread-synchronization primitives to help protect member and global data.

This restriction does not apply to the DCOM implementation.

Specifying the Threading Model

If the ThreadingModelregistry key is not set, the threading model defaults to "Free."

In the COM implementation for Windows Mobile devices, this default is not an issue because COM does not support other threading models.

See Also