Re: Help! my toolbar cause IE deadlock
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 08/23/04
- Next message: HudsonKane: "Re: recursively get links (IHTMLElementCollection)"
- Previous message: Igor Tandetnik: "Re: resources kept in history!!!"
- In reply to: wangzhong: "Help! my toolbar cause IE deadlock"
- Next in thread: wangzhong: "Re: Help! my toolbar cause IE deadlock"
- Reply: wangzhong: "Re: Help! my toolbar cause IE deadlock"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: HudsonKane: "Re: recursively get links (IHTMLElementCollection)"
- Previous message: Igor Tandetnik: "Re: resources kept in history!!!"
- In reply to: wangzhong: "Help! my toolbar cause IE deadlock"
- Next in thread: wangzhong: "Re: Help! my toolbar cause IE deadlock"
- Reply: wangzhong: "Re: Help! my toolbar cause IE deadlock"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|