CoInitialize() May Cause OLE Applications to Stop RespondingLast reviewed: October 21, 1997Article ID: Q159273 |
The information in this article applies to:
SYMPTOMSAfter a Windows OLE application (such as Date/Time in Control Panel) issues a SendMessage(HWND_BRAODCAST) to a console application, the Windows OLE application appears to stop responding.
CAUSEThe console application does not have a Windows message loop. If a console application calls CoInitialize() to initialize the Component Object Model (COM) library, it does not have a Windows message queue. This causes OLE applications to stop responding while they are waiting for the console application to process their messages. The basic assumption with OLE is that OLE applications are Windows applications, and that they process messages on a regular basis.
WORKAROUNDTo work around this problem, do either of the following:
|
Additional query words: prodnt prodsna 2.11 hang hung crash fail RPC call
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |