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?
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