Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE 10 Intermittently Crashing Application with Web Browser Control

$
0
0

We supply a business application that uses the Microsoft Web Browser Control to navigate to a website. Nothing fancy, it simply uses the Navigate call and the NewWindow2 event. We have had hundreds of users report to us that our system intermittently crashes while loading the webpage. Our staff has been able to reproduce it, however we have not reproduced it in a development environment yet as we do not use IE10 in dev, so we have not debugged it. We have confirmed this in Windows 7.

Once we instruct the user to roll back to IE 9, all issues go away. Below is all the VB6 code we use. Please fix it!

On Form Load

Dim bytPostData() As Byte
Dim headerStr As String
headerStr = "Content-Type: application/x-www-form-urlencoded" & vbCrLf

IEForm!CtrlWebBrowser.navigate https://secure.website.com/directory/WebPage.mht, 0, "", bytPostData, headerStr

Private Sub CtrlWebBrowser_NewWindow2(ppDisp As Object, Cancel As Boolean)
On Error GoTo ErrorHandler

Dim frm As Form
Set frm = New Form_frmIEEmbeddedPopup
Set ppDisp = frm.CtrlWebBrowser.Object
frm.Visible = True
frmCollection.Add Item:=frm, Key:=CStr(frm.hwnd)
Set frm = Nothing

Exit Sub
ErrorHandler:
Call Msgbox("ERROR: #" & Err.Number & " " & Err.Description, vbCritical + vbOKOnly, "Error Message")
End Sub




Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>