Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Changes in threading? Options
PS
Posted: Monday, February 3, 2020 5:43:28 AM
Rank: Advanced Member
Groups: Member

Joined: 10/24/2018
Posts: 96
When trying the latest 2020 version in a test system we are seeing threading changes, can you confirm the following?
1. Is WebView.IsLoadingChanged executed on a different thread now?
2. Is WebView.LoadCompleted executed on a different thread now?
Stefan Koell
Posted: Monday, February 3, 2020 8:32:36 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 66
I also see that LoadFailed is executed on a background thread (not the UI thread). The question is:
1. Is this by design or is this a bug in the current build?
2. What happens when e.UseDefaultMessage() is executed (from the BG thread)

Up until now, I assumed the events are executed on the UI thread.
eo_support
Posted: Monday, February 3, 2020 10:09:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,938
Hi,

As to your questions:

1. IsLoadingChanged. This event should be always called in the UI thread (the thread in which the WebView is created);
2. LoadCompleted/LoadFailed. These two events MAY be called in the IO thread This seems to be an issue. We will look into it and see if we can always trigger these two events in the UI thread;
3. When an Url fails to load, the default error message contains a "hint" message "To customize this message, please handle the WebView's LoadFailed event...." then is followed by the actual error message. e.UseDefaultMessage() turns off this hint message and display ONLY the error message. If you have explicitly set e.ErrorMessage, then e.UserDefaultMessage() has no effect;

Hope this helps.

Thanks!
eo_support
Posted: Thursday, February 13, 2020 2:53:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,938
Hello,

This is just to let you know that we have posted a new build that will always fire LoadFailed/LadCompleted in the UI thread. You can download it from our download page and let us know how it goes.

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.