Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

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

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

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

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.

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.

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)

APPLIES TO
  • Windows Internet Explorer 7
Keywords: 
kbexpertiseadvanced kbtshoot kbprb KB950935
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate