colindcli / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Startup takes too long #195

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Downloaded version 3.0.1.0023
2.  Follow directions in [open-webkit-sharp\How to use.txt]
3.  Build project and Run

What is the expected output? What do you see instead?
The form takes a very long time to start up.  Debugging in VS showed that the 
line indicated below takes nearly 1-2 minutes to complete:
[In \open-webkit-sharp\Examples & Tests\OpenWebKitSharp Example\Form1.cs]
        void AddTab(string url)
        {
            WebKitBrowser browser = new WebKitBrowser();
            browser.AllowNewWindows = true;
            browser.AllowCookies = true;
            TabPage tab = new TabPage();
            tab.Controls.Add(browser);
            browser.Name = "WebKitBrowser";
            browser.Dock = DockStyle.Fill;
            tabControl1.Controls.Add(tab);  <-------- This Line
            tabControl1.SelectedTab = tab;
            AddEvents(browser);
            browser.Navigate(url);
        }

What version of the product are you using? On what operating system?
Using version 3.0.1.0023 in Windows 7. Project is compiled in VS 2012 in .NET 
Version 4.0

Please provide any additional information below.
I wonder if this is because when the WebKitBrowser is added to the form, the 
VC++ runtime is getting loaded - and that takes a long time?  Not sure.

Any help is appreciated.

Thanks,

Tim

Original issue reported on code.google.com by vict...@gmail.com on 22 Aug 2013 at 5:02