|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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.aspxWe will look into it as soon as we have it. Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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!
|
|