Main Apartment Must Not Exit While Process Does OLE Work (137630)



The information in this article applies to:

  • Microsoft 32-bit OLE libraries, when used with:
    • the operating system: Microsoft Windows NT 3.51
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows 95

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.

Modification Type:MinorLast Reviewed:3/16/2005
Keywords:kbprogramming KB137630