Using WebBrowser2 Interface in Multithreaded application.
Posted on 2003-10-31
david_johns and I are working on an application together. I had more points available so I am repeating his question with more points to hopefully attract an answer:
We are using a WebBrowser2 interface to do some work for us in our application. We are trying to introduce multithreading allowing the browser to pick up information in the background and let the user continue using the application.
We seem to lose control of the WebBrowser2 (it will no longer navigate or recieve when one thread that was using it exits and another tries to access it. The browser is still running, but the WebBrowser2 seems to be a corrupt pointer.
500 points for the person who can figure out how to acess the same WebBrowser2 interface inside of a thread different from the one it was created in or somehow store a reference to the browser itself from which we can restore the WebBrowser2 interface before starting to use it in the second thread. Thanks for your help.