Welcome Guest Search | Active Topics | Sign In | Register

GetText call in WebView_LoadCompleted event hangs machine Options
Julie Allen
Posted: Wednesday, January 3, 2018 7:34:42 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 are using the GetText method on a number of WebView objects in the relevent WebView_SizeChanged and WebView_LoadCompleted events.
This call appears to hang not only Outlook but the whole machine.

Is there an alternative method we can use to check whether the WebView object has text in it.

Example of the code:

private void webView1_LoadCompleted(object sender, EO.WebBrowser.LoadCompletedEventArgs e)
{
if (webView1.GetText().Length != 0)
{
}
}

I can send a sample project if needs be.
eo_support
Posted: Thursday, January 4, 2018 12:43:55 PM
Rank: Administration
Groups: Administration

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

You can not do that. GetText will not return until the event handler returns. You can try to use BeginInvoke to delay the call and that should work for you.

Thanks!

KimKamp
Posted: Thursday, March 21, 2019 1:14:51 PM
Rank: Advanced Member
Groups: Member

Joined: 3/13/2017
Posts: 33
The 2018 versions WOULD work without this issue. It hangs in the 2019 version.
eo_support
Posted: Saturday, March 23, 2019 2:28:18 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
KimKamp wrote:
The 2018 versions WOULD work without this issue. It hangs in the 2019 version.


Each build uses a different version of the browser engine and it involves significant changes. The load notification in 2019 is implemented differently than that of 2018. So while we try to make the change as transparent to the end user as possible, it still can have user noticeable differences that can not be avoided. In another word, it works in 2018 this way doesn't mean it must work exactly this way in 2019. Some of these changes are unavoidable. So please try our suggested workaround and let us know if that works for 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.