title: Generating report results in an unhandled exception of type 'system.stackoverflowexception' occurred in system.windows.forms.dll
body: <p>I'm creating a crystal report in Visual Studio 2012 but I keep getting an error of</p>
  
  <pre><code>an unhandled exception of type 'system.stackoverflowexception' occurred in system.windows.forms.dll
  </code></pre>
  
  <p>Here my code for Form 4:</p>
  
  <pre><code>public partial class Form4 : Form
  {
      public Form4()
      {
          InitializeComponent();
      }
  
      private void Form4_Load(object sender, EventArgs e)
      {
          CrystalReport1 r = new CrystalReport1();
          maintenance_productDataSetTableAdapters.COLOR_TYPETableAdapter ta = new EBL.maintenance_productDataSetTableAdapters.COLOR_TYPETableAdapter();
          maintenance_productDataSet.COLOR_TYPEDataTable table = ta.GetData();
          r.SetDataSource(table.DefaultView);
          crystalReportViewer1.ReportSource = r;
          crystalReportViewer1.Refresh();
      }
  }
  </code></pre>
  
  <p>Form4 the one load when I start to run the VS 2012.</p>
  
  <p>I also tried to use DataSet but it has the same error. Code with DataSet:</p>
  
  <pre><code>CrystalReport1 rep = new CrystalReport1();
  DataSet1TableAdapters.COLOR_TYPETableAdapter ta = new Weeak.DataSet1TableAdapters.COLOR_TYPETableAdapter();
  DataSet1.COLOR_TYPEDataTable table = ta.GetData();
  rep.SetDataSource(table.DefaultView);
  crystalReportViewer1.ReportSource = rep;
  crystalReportViewer1.Refresh();
  </code></pre>