|
-
Oct 10th, 2003, 07:25 AM
#1
Thread Starter
Frenzied Member
web browser crashes vb6
I've built a number of apps in the past couple of years that, without warning, crash vb6. If compiled, they'll just crash. There is no error message given. Since I'm in XP I usually just get that "had to close, send report box"
Anyway, I have never really found the cause.
A symptom is when the app is running and a page is loading and I use ctrl break to stop it, it will run for about 30 seconds like it can't finish, then crash as mentioned. Other times it crashes like that on its own.
Anybody else?
Thanks
Wengang
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Oct 10th, 2003, 07:26 AM
#2
Thread Starter
Frenzied Member
in case I wasn't clear, it's only with the Webbrowser control
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Oct 10th, 2003, 08:04 AM
#3
-
Mar 14th, 2011, 06:52 AM
#4
Lively Member
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
-
Mar 14th, 2011, 07:40 AM
#5
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.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Mar 14th, 2011, 08:41 AM
#6
Thread Starter
Frenzied Member
Re: web browser crashes vb6
funny what time can do
I don't even remember posting this.
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Mar 14th, 2011, 08:43 AM
#7
Thread Starter
Frenzied Member
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.
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Mar 14th, 2011, 09:39 AM
#8
Re: web browser crashes vb6
lol
I just saw the date!!
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Mar 14th, 2011, 10:49 AM
#9
Lively Member
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...
Last edited by bahramvb; Mar 14th, 2011 at 11:12 AM.
-
Mar 14th, 2011, 11:22 AM
#10
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.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|