Re: web browser crashes vb6
WebBrowser crashes but when I used the code below it was resolved
Private Sub Form_Unload(Cancel As Integer)
WebBrowser1.Navigate2 ""
End Sub
Re: web browser crashes vb6
There can be a number of things that cause that. I have seen more than one. The only two I can remember are: Get an API definition wrong and that can do it. Also passing the wrong datatype OR a null reference when there is no error checking to third party controls or libraries can do it.
The way to narrow it down is to comment out large blocks of code. Keep commenting out code until you get it to run without crashing. Then start putting code back in until you find the culprit.
Re: web browser crashes vb6
funny what time can do
I don't even remember posting this.
Re: web browser crashes vb6
oh,
now I do vaguely recall
for some reason (windows version, dll version, etc)
I had to go to all my old apps, delete the actual WB component from all forms and then add them back and recompile and the apps worked again.
Can't remember what it was now.
Re: web browser crashes vb6
lol
I just saw the date!!
Re: web browser crashes vb6
But this problem for me is just new!!
I found this from googling
I wrote I resolved the problem by putting WebBrowser1.Navigate2 "" in the unload but it acctually doesnt resorved at least in the developing time, it sometimes crash and close VB
do you know any safe way to use this WebBrowser
is there any alternative to it...
Re: web browser crashes vb6
Then you should open a new thread. Sometimes crash doesn't help. You need to determine how to make the problem happen all the time. Then you can figure out what the problem is.
WebBrowser is really just an API for IE.
The safe way to use it is to figure out what it does not like that you're doing and avoid doing that. You may be doing something wrong, or you may be doing something right that the control can't handle. Until you find out, you won't know.
Make notes of every step you take. Then hopefully you can recreate the problem following the exact procedure. Then determine what step is causing the problem.