Microsoft KB Archive/137630

= Main Apartment Must Not Exit While Process Does OLE Work =

Article ID: 137630

Article Last Modified on 3/16/2005

-

APPLIES TO

 Microsoft 32-bit OLE libraries, when used with:  Microsoft Windows NT 3.51 Service Pack 5

 Microsoft Windows NT 4.0

 Microsoft Windows 95 

-

<div class="notice_section">

This article was previously published under Q137630

<div class="notice_section">

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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.