|
Rank: Advanced Member Groups: Member
Joined: 5/8/2015 Posts: 46
|
Hi,
We are seeing a very intermittent issue with the web browser. We have a simple form containing a web browser and every now and then the users are reporting they are seeing the form go completely blank and when they try and refresh they are getting an error 'the webview is already destroyed'. We do not destroy or close the webview through the entire life cycle of the application, it simply sits there for the user to interact with.
Is there any reason we could be getting this error?
Regards, Andy.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This usually is a crash somewhere. Is there anyway you can reproduce the problem? While it is not completely possible to eliminate all crashes as Chrome browser crashes sometimes as well, frequent crash would indicate a problem somewhere. So if you can reproduce the problem, we will be very happy to investage further.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 5/8/2015 Posts: 46
|
Hi,
The issue is very sporadic unfortunately and the only way we can re-create it s by manually ending the rundll processes via the task manager. I presume that the Chrome engine is falling over somewhere.
We've put some logging into our application in an attempt to figure out how widespread the issue is. We have released the software to 4 of our 20+ clients each having a user base of between 10 and 30 users so will have to see how it goes.
Is there any way of detecting when the browser has crashed and the webview is destroyed (I can't see any event onDestroy or anything similar). My thought was to set a timer which tries to access the webview and catches any error and recreates the web view?
Andy.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
When the browser engine crashes, your WebView will be automatically destroyed, which will trigger WebView.Closed event. So you can handle that event to recreate the WebView. This is similar to Chrome browser's "auto restart tab" feature.
Thanks!
|
|