Welcome Guest Search | Active Topics | Sign In | Register

EO WebBrowser Exception not being handled Options
Julie Allen
Posted: Monday, December 4, 2017 8:15:25 AM
Rank: Newbie
Groups: Member

Joined: 6/26/2017
Posts: 9
We have developed an Outlook Add-in that displays web pages from our web-based software in a EO WebBrowser.
We have a Ribbon that allows the user to click on tabs which displays a different web page by call script within the web page to display different data:
webViewWebsite.EvalScript(string.Format("ChangeTabOT('{0}')", sPOLTabName));
We have found that after using the Add-In for a while, an EO Exception is thrown causing Outlook to hang with the following message:
"Exception:
System.Exception: This WebView either has already been destroyed or is being destroyed."
from EO.Base.Runtime.Exception.
I have searched the EO documentation but have been unable to resolve this problem. Please advise on how we might trap the exception or avoid it in the first place. Please let me know if you need additional information.

Thank you.
Kind regards

Julie
eo_support
Posted: Monday, December 4, 2017 9:29:11 AM
Rank: Administration
Groups: Administration

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

You will need to find out the root of the problem in such cases. There are three cases when a WebView is destroyed:

1. It was directly destroyed by your code. For example, by calling WebView.Destroy();
2. It was automatically destroyed when the parent window is destroyed. For example, if you put the WebView in a panel and that panel has been removed;
3. The browser engine has crashed;

You will need to find out which cases first (you can handle the WebView.Closed event and then use call stack or e.Reason in your event handler to get additional information on why the WebView is closed). If it is case 1 and case 2, then you will need to fix it in your code. If it is case 3, then please try to reproduce it in a standalone app and once you reproduce it, you can send it to us:

https://www.essentialobjects.com/forum/test_project.aspx

We will investigate further as soon as we have that.

Thanks!
Julie Allen
Posted: Monday, December 4, 2017 9:38:10 AM
Rank: Newbie
Groups: Member

Joined: 6/26/2017
Posts: 9
Thank you for the prompt reply. I will investigate further based on your advice. And get back to you.


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.