Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program error exiting an app which uses WebBrowser control

Status
Not open for further replies.

dethomson

MIS
Jun 15, 2003
5
US
I have a small vb6 app which has the web browser control added. Here's a link to the code ->
problem: If I select a hyperlink in the loaded htm document (the link opens in an external IE window) and exit the app, I get a runtime error. I noticed that I do not get the error if I first close the new window prior to exiting my app.

This seems to me to be something simple with the two browser instances (one in the app and the newly spawned one) being aimilarly referenced.

question: Can someone point me in the right direction on proper usage of the web browser control or provide some insight to help me correct the problem?

Thanks

Dan

VB6 noobie
 
I made an app that used webbrowser control and I get an error every time i exit it. I set all controls to nothing and then I exit the app... doing that I solved the problem.
 
I tried that too, but it didn't help. I'm still trying to understand the proper methodology for exiting apps. Does anyone have a good resource that can give me Best Practices and such for exiting apps?

Anyway, I ended up getting around the issue another way. I'll update this thread later with my procedure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top