Knowledge Base

Main Apartment Must Not Exit While Process Does OLE Work

Article ID: 137630

Article Last Modified on 3/16/2005


APPLIES TO


This article was previously published under Q137630
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 query words: 4.00 CreateThread

Keywords: kbprogramming KB137630