OleUninitialize hang for 10 secs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bob Smith (anonymous_at_discussions.microsoft.com)
Date: 09/16/04


Date: Thu, 16 Sep 2004 04:06:37 -0700

Hi,

I have developed an application that uses the web browser
control using MFC and the ActiveX wrapper.

The OS is XP + SP1.

The browser class is CDialog based and the browser dialog
is shown as modal numerous times when the application is
running.

The DoModal call is something like this:
{
   CBrowserDlg browserDlg;

   ...

   hRes = OleInitialize(NULL);

   nRet = browserDlg.DoModal();

   OleUninitialize();
}

The problem I have is that after the system has been
running for a while the call to OleUninitialize hangs for
exactly 10 seconds. After this point it is reproducible,
even if the system is rebooted! I have some MFC timers in
use but these are always killed in my DestroyWindow
override.

Any ideas?

Cheers,
Bob



Relevant Pages

  • Re: connect my MFC application to some web interfaces
    ... If you mean you want to show MFC dialogs in a browser using Web Services, I don't think this is even remotely possible. ... You might be able to run your application in a browser in an intranet environment by converting your application to an Active X control. ... If you have non-GUI utility functions, you might have some luck by moving the functionality into a DLL, then write a C# Web Service and have that service load the DLL and make calls into it for functionality. ...
    (microsoft.public.vc.mfc)
  • OleUninitialize hang for 10 secs
    ... I have developed an application that uses the web browser ... control using MFC and the ActiveX wrapper. ... The OS is XP + SP1. ... The browser class is CDialog based and the browser dialog ...
    (microsoft.public.win32.programmer.ole)
  • Starting a HTML file from MFC application
    ... i want to launch a HTML file with a browser from a MFC application. ... Thanks for any clue! ... Kai Sandner ...
    (microsoft.public.vc.mfc)
  • Re: problem with vc++ 6 appwizard
    ... >> I am trying to learn mfc, but whenever I try to compile even an ... > One browser to find them ... > One email client to bring them all ... > And through security holes, ...
    (alt.comp.lang.learn.c-cpp)
  • Webapplikation friert ein
    ... bei einer Webapplikation, ... die wir im Intranet einsetzen, friert der Browser bei den Usern (WinXP SP1, ... IE6 SP1 + diverse Patches) sporadisch ein. ... Session-Timeout einen recht niedrigen Wert in der web.config der betroffenen ...
    (microsoft.public.de.german.entwickler.dotnet.asp)