Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: 25 May 2006 00:07:23 -0700,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


Exception is arised in the mutithread BHO   
I got a multithread in the BHO to modify element from Explorer.
It is fine. But I got a exception when it opened the same page
from a new window. What's going on? What's the problem?
date: 25 May 2006 00:07:23 -0700   author:   unknown

Re: Exception is arised in the mutithread BHO   
wrote in message
news:1148540843.364531.56070@i40g2000cwc.googlegroups.com
> I got a multithread in the BHO to modify element from Explorer.
> It is fine. But I got a exception when it opened the same page
> from a new window. What's going on? What's the problem?

Be aware that a New Window command opens a new browser instance on a 
different thread within the same process. Each WebBrowser instance 
creates a new instance of your BHO.

So in a single process you can have multiple instances of WebBrowser, 
each running on its own thread, each hosting a copy of your BHO. Be 
careful to take this into account in your design.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Thu, 25 May 2006 07:19:40 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us