Main Apartment Must Not Exit While Process Does OLE Work

ID: Q137630

The information in this article applies to:

In OLE's apartment threading model, the main apartment of the process is the thread that first calls OleInitialize (or CoInitialize) either implicilty or explicitly. The main apartment must not exit until completion of all OLE work in the process.

Additional reference words: 4.00 CreateThread KBCategory: kbole kbprg KBSubcategory: LeTwoArc

Last Reviewed: October 3, 1995