Welcome Guest Search | Active Topics | Sign In | Register

WebView.LoadHtml is hanging Options
BenjaminSimpson1989
Posted: Wednesday, June 29, 2016 4:02:42 PM
Rank: Advanced Member
Groups: Member

Joined: 1/12/2015
Posts: 81
I have a program which reads in HTML from a file and calls "webview.LoadHtml(File.ReadAllText(fileName), url).WaitOne()". I've found that most of the time when the file is over 800KB, this function never returns. I try multiple times and it will still not work. Eventually (usually a few hours later) it will work and all other files of the same size will also start to work. I've tried putting in a timeout in the WaitOne function, but then it won't actually load the webpage. I'm using version 16.0.91.0.
eo_support
Posted: Thursday, June 30, 2016 10:15:11 AM
Rank: Administration
Groups: Administration

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

Can you try to isolate the problem into a test project and send it to us? See here for more details:

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

We will look into it as soon as we have it.

Thanks!
eo_support
Posted: Wednesday, July 6, 2016 10:52:55 AM
Rank: Administration
Groups: Administration

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

We have looked into the sample project you sent to us. This seems to be a deadlock issue that we have fixed very recently. So please download the latest build (16.1.32.0) from our download page and see if it works for you.

Additionally, in your code you have:

Code: C#
wb.LoadHtml(html, url.ToString());


You may want to change it to:

Code: C#
wb.LoadHtml(html, url.ToString()).WaitOne();


Since just LoadHtml without waiting for it to complete may not do anything at all (the WebView might have already destroyed by the time the load data is sent to the browser engine). Of course, if this is just for demonstrating the problem in a test project then this is not an issue.

Thanks!
BenjaminSimpson1989
Posted: Tuesday, July 12, 2016 4:09:06 PM
Rank: Advanced Member
Groups: Member

Joined: 1/12/2015
Posts: 81
You're right, I had forgotten to add the WaitOne() in the test project even though I have it on my actual project. I tried using the 16.1.32.0 build but the problem is still there.
eo_support
Posted: Wednesday, July 13, 2016 12:15:26 PM
Rank: Administration
Groups: Administration

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

We are not sure what else to tell you. We are not able to reproduce this problem so we are unable to move further on this issue.

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.