title: WebBrowser control crashes on Windows 10
body: <p>The following short code example demonstrates WebBrowser crashing for some pages.  The problem started after a fresh installation of Windows 10 and Visual Studio Community 2015 on 26-27 December 2015. The problem did not occur with the previous installation of Windows 10 and Visual Studio Community 2015. The same program has been tested on another computer with the same software and operating system and the same problem
  occurs.</p>
  
  <p>Clicking 'Download 2' successfully downloads the page from Google.</p>
  
  <p>Clicking 'Download 1' starts downloading from Bloomberg and after most of the page is visible a popup message opens with "WindowsFormsApplication1.exe has triggered a breakpoint."  with execution stopped at line "Application.Run(new Form1())". Sometimes the error message does not show until the page is scrolled. The same URL downloads on IE11 without problems and Developer Tools / compatibility indicates no problems. Setting the Webbrowser emulation level in registry to 11001 makes no difference. WebBrowser1.ScriptErrorsSuppressed makes no difference.</p>
  
  <p>If 'continue' is clicked another message opens with "Unhandled exception at 0x12C731C2 (Flash.ocx) in WindowsFormsApplication1.exe: 0xC0000602: A fail fast exception occurred. Exception handlers will not be invoked
  and the process will be terminated immediately."</p>
  
  <p>If 'continue' is selected another message opens with "Exception thrown at 0x00000000 in WindowsFormsApplication1.exe: 0xC0000005: Access violation executing location 0x00000000. If there is a handler for this exception, 
  the program may be safely continued."</p>
  
  <p>Is there something that can solve the problem?</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  
  namespace WindowsFormsApplication1
  {
  public class Form1 : Form
  {
  
      TextBox textBox1;
      TextBox textBox2;
      Button button1;
      Button button2;
      TableLayoutPanel table1;
      WebBrowser webBrowser1;
  
      public Form1()
      {
  
          textBox1 = new TextBox();
          textBox1.Width = 200;
          textBox1.Text = "http://www.bloomberg.com/energy";
  
          button1 = new Button();
          button1.Text = "Download 1";
          button1.Click += button1_Click;
  
          textBox2 = new TextBox();
          textBox2.Width = 200;
          textBox2.Text = "http://www.google.com";
  
          button2 = new Button();
          button2.Text = "Download 2";
          button2.Click += button2_Click;
  
          webBrowser1 = new WebBrowser();
          webBrowser1.Dock = DockStyle.Fill;
          webBrowser1.ScriptErrorsSuppressed = true;
  
          table1 = new TableLayoutPanel();
          table1.Dock = DockStyle.Fill;
          table1.RowCount = 3;
          table1.ColumnCount = 2;
          table1.Controls.Add(textBox1, 0, 0);
          table1.Controls.Add(button1, 1, 0);
          table1.Controls.Add(textBox2, 0, 1);
          table1.Controls.Add(button2, 1, 1);
          table1.Controls.Add(webBrowser1, 0, 2);
          table1.SetColumnSpan(webBrowser1, 2);
  
          this.Controls.Add(table1);
          this.WindowState = FormWindowState.Maximized;
  
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          webBrowser1.Navigate(textBox1.Text);
      }
  
      private void button2_Click(object sender, EventArgs e)
      {
          webBrowser1.Navigate(textBox2.Text);
      }
  
  }
  
  static class Program
  {
      [STAThread]
      static void Main()
      {
          Application.EnableVisualStyles();
          Application.SetCompatibleTextRenderingDefault(false);
          try
          {
              Application.Run(new Form1());
          } catch (Exception ex)
          {
              string msg = ex.Message;
          }
      }
  }
  }
  </code></pre>