A COM server may not exit as expected after the object is destroyed if you start Internet Explorer 7 as the COM server

A COM server may not exit as expected after the object is destroyed if you start Internet Explorer 7 as the COM server

Article ID : 950935
Last Review : April 17, 2008
Revision : 1.0

SYMPTOMS

If you start Windows Internet Explorer 7 as a Microsoft COM server, the COM server may not exit as expected after the object is destroyed.

Consider the following scenario in Microsoft Internet Explorer 6. You start Internet Explorer 6 as a COM server by using the CoCreateInstance method. Additionally, you do not call the IWebBrowser2::put_Visible(VARIANT_TRUE) method to make the window visible. In this scenario, the final Release method that is performed on the client-side interface pointer stops the Internet Explorer process. This behavior occurs because Internet Explorer 6 implements the IExternalConnection interface in COM.

However, in Internet Explorer 7, the COM server does not exit after the interface pointer is released. This problem is a side effect of the new threading architecture for Internet Explorer 7. In the new threading architecture for Internet Explorer 7, each tab has its own thread.

Back to the top

WORKAROUND

To work around this problem, call the IWebBrowser2::Quit method to stop the Internet Explorer server process.

Note You can use this technique to work around this problem in Internet Explorer 7 and in Internet Explorer 6.

Back to the top

REFERENCES

For more information about the IWebBrowser2::Quit method, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/aa752140.aspx (http://msdn2.microsoft.com/en-us/library/aa752140.aspx)

Back to the top


APPLIES TO
• Windows Internet Explorer 7

Back to the top

Keywords: 
kbexpertiseadvanced kbtshoot kbprb KB950935

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image