Welcome Guest Search | Active Topics | Sign In | Register

Multiple child forms with WebControl not loading pages Options
Fady
Posted: Sunday, April 17, 2016 2:09:33 AM
Rank: Newbie
Groups: Member

Joined: 4/15/2016
Posts: 4
Hi, I have a C# WinForm project that has a master form with a WebControl that loads multiple child forms, each with its own WebControl.
Basically the master form loads a web page, reads its contents (having multiple links), and loads each of these links in separate child forms.
The issue is that if there are more than 5 or 6 child forms being created, the webpages are not loading for some of the forms. I created a test project, and am able to reproduce the issue consistently (blank child webpages). Let me know if you want me to send you the test project, or if this is a known issue.

Worth noting that this issue started happening once I upgraded from EO.Total.2016.0.36.0 to EO.Total.2016.0.49.0 (free version). I had to upgrade to get the EO.Base exception handling.

Thanks.
eo_support
Posted: Sunday, April 17, 2016 8:17:46 PM
Rank: Administration
Groups: Administration

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

Please update to EO.Total 2016.0.55.0. We have just posted this build two days ago that should fix this issue. Please let us know if you still see this problem with the .55 build.

Thanks!
Fady
Posted: Monday, April 18, 2016 2:21:51 AM
Rank: Newbie
Groups: Member

Joined: 4/15/2016
Posts: 4
Hi, thanks, updating to 0.55 resolved the blank pages issue. However, I now have another problem (not sure if this already existed in previous versions): The CPU usage is spiking and staying at 99% when for example around 15 child forms are open. This does not happen with other web controls I've tried with the same site (like IE WebBrowser, Awesomium etc.) It happens with particular sites like msn.com, gamespot.com, cnn.com. It does not happen with less busy sites like www.reddit.com, www.enterpriseobjects.com, etc.

Is this a known issue? Is there something I can do about it? You can simply use the test project I have already sent related to this thread using the sites above and see for yourself. Let me know if you want me to start a new post on this.

Thanks for your help.
eo_support
Posted: Monday, April 18, 2016 4:38:13 PM
Rank: Administration
Groups: Administration

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

This does not appear to be an new issue and the high CPU usage seems to be related to Flash plugin used in those pages, even though in our test it eventually comes down considerably. It appears that Chrome uses its own version of Flash plugin that is more optimized than the one directly from Adobe. You can try to disable the plugin with the following code before you create any WebView (a good place would be inside your Program.Main before creating the main form:

Code: C#
EO.WebBrowser.Runtime.DisableBuiltInPlugIns = true;
EO.WebBrowser.Runtime.AutoScanCommonPlugins = false;


Thanks!
Fady
Posted: Monday, April 18, 2016 5:04:43 PM
Rank: Newbie
Groups: Member

Joined: 4/15/2016
Posts: 4
Hi, thanks! That reduced the CPU usage for 15 forms down to ~80% (instead of the constant 99% before the code change, and I had waited more than a few mins with no change).
Are there any other tips to improve the performance besides disabling plugins that you can suggest?
btw, I had seen a thread about splitting the single EO.Webbrowser DLL into multiple ones to address memory issues. Would switching to multiple DLLs reduce CPU usage as well? (before I jump in to try).

Thanks again.
eo_support
Posted: Monday, April 18, 2016 5:08:47 PM
Rank: Administration
Groups: Administration

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

We can not think of anything else to try. There seems to be other form of optimization done by Chrome (for example, Chrome only has a single page visible at any time due to the tabbed interface). However we are not sure exactly which part that made the difference before we can investigate further.

The multi-DLL build no longer exists --- the optimization offered by the multi-DLL build has already been implemented in the current build. So splitting it into multiple DLLs would not address this issue.

We will continue research on this issue and if we find anything we will post again.

Thanks!
Fady
Posted: Monday, April 18, 2016 5:15:22 PM
Rank: Newbie
Groups: Member

Joined: 4/15/2016
Posts: 4
Thanks for the prompt reply.
To confirm, does the WebControl rely on the local Chrome browser installation (settings, plugins, ...) on the machine? That is, is it worth making changes to my browser setup/settings to potentially positively affect the EO.Webbrowser perf?

Thanks.
eo_support
Posted: Monday, April 18, 2016 5:18:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
No. It does not rely on local chrome installations. Changes/settings for your local Chrome browser would not affect EO.WebBrowser.

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.