How to implement a thread-pooled apartment model COM Server in ATL (244495)
The information in this article applies to:
- The Microsoft Active Template Library (ATL) 3.0, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q244495 SUMMARY
The Microsoft Active Template Library (ATL) allows you to define a pool of STA threads in an ATL out of process server with each object created running on its own thread. The steps in the "More Information" section of this article shows how to do this.
REFERENCES
For more information lookup DECLARE_CLASS_FACTORY_AUTO_THREAD() and CComAutoThreadModule and the Microsoft Developer's Network (MSDN).
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
202128
FIX: ATL EXE server based on CComAutoThreadModule may hang on registration
Modification Type: | Major | Last Reviewed: | 5/26/2005 |
---|
Keywords: | kbArchitecture kbhowto kbLocalSvr kbService kbThread KB244495 kbAudDeveloper |
---|
|