Welcome Guest Search | Active Topics | Sign In | Register

Help with restarting web view after render crash Options
NRGSTREAM
Posted: Thursday, July 9, 2020 4:39:39 PM
Rank: Member
Groups: Member

Joined: 9/1/2015
Posts: 23
I've been getting the occasional blank screen with the error about Webview has already been destroyed. I've implemented the webview closed event and discovered that it's a render crash. I can't duplicate it on command so I'd like to try and restart the browser but the screen still stays blank. Below is my code trying to restart, am I missing something?

Private Sub WebView1_Closed(sender As Object, e As WebViewClosedEventArgs) Handles WebView1.Closed
Try
If e.Reason <> WebViewCloseReason.Normal Then
WebView1 = New WebView
'Custom function to build url and call Load Request
mNavigatePro()
End If
Catch ex As Exception
'log exceptions
End Try
End Sub
eo_support
Posted: Friday, July 10, 2020 9:34:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

If you use WebControl in your Window/Form, you should set the WebControl's WebView property to the new WebView.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.