Re: Help! my toolbar cause IE deadlock

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 08/23/04


Date: Mon, 23 Aug 2004 10:08:39 -0400


"wangzhong" <wzhy2000@hotmail.com> wrote in message
news:em2H%23zLiEHA.3476@tk2msftngp13.phx.gbl
> I am doing a toolbar for IE. I have a strange problem,
> in some computers, the IE will hang when the one of browsers is
> closed.
>
> the following is some information about this plugin.
>
> 1) Written in MFC DLL(include ATL and WTL)
> 2) Creates some work threads with CWinThread in this DLL
> 3) Intercepts the DWebBrowserEvent
> 4) In Browser thread, create a hidden window for receive the message
> from work thread, then call IWebBrowser method to do something.
>
> When the browser becomes deadlock, all COM threads
> will be stopped at !NTDLL@sharedUserData

Sounds like a loader lock. Do you, by any chance, signal your threads to
stop and wait for them from inside DllMain? Very bad idea. Shut down
your threads when IObjectWithSite::SetSite(NULL) is called.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages

  • Help! my toolbar cause IE deadlock
    ... in some computers, the IE will hang when the one of browsers is closed. ... Creates some work threads with CWinThread in this DLL ... In Browser thread, create a hidden window for receive the message ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • ShellExecute: Exception 0x80004002
    ... i have a strange problem and cannot find a solution (i tried manuals, msdn, ... In this special program, ShellExecute returns SE_ERR_ACCESSDENIED ... When I use full path for browser ... I have no special compiler/linker options set in this program, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Very strange: Cannot access any sites although connection apparently good
    ... > I have a very strange problem. ... If I connect via my ADSL modem everything works perfectly. ... > names are resolved but at the last stage the browser fails ... its possible that your netgear router does not handle ECN packets ...
    (Debian-User)
  • VS.NET hanging when opening a receive pipeline
    ... Thought I'd post this problem & solution incase it happens to others... ... I encountered a strange problem today, whereby VS.NET would hang every time ... VS.NET would hang, not taking up any CPU nor consuming any additional memory. ...
    (microsoft.public.biztalk.general)
  • Has anyone experienced this unusual problem?
    ... I recently started experiencing a strange problem in Vista. ... Whenever I click on a link for an ad in my browser (clickserve or linksynergy for example) I get a blank page as a result. ...
    (microsoft.public.windows.vista.general)