title: Tesseract Init() method C3
body: <p>I am using Tesseract 2 with c# .net 4.5
  Whenever code reaches to OCR.InIt() method, it comes out of code and program stops execution.
  Even Catch block does not hold the code.
  Please let me know how to check the problem.</p>
  
  <pre><code>Bitmap image = new Bitmap(ofd_OpenPhoto.FileName);
  tessnet2.Tesseract ocr = new tessnet2.Tesseract();
  ocr.Init("C:\\tessnet2\\tesseract-ocr\\tessdata", "eng", false);
  </code></pre>
  
  <p>Please let me know, how to use Init() method, Should I remove null?</p>
  
  <pre><code>private void btn_Browse_Click(object sender, EventArgs e)
          {
              ofd_OpenPhoto.Multiselect = false;
              ofd_OpenPhoto.RestoreDirectory = true;
              ofd_OpenPhoto.SupportMultiDottedExtensions = false;
              ofd_OpenPhoto.FileName = "";
              ofd_OpenPhoto.Title = "Select Photo";
              ofd_OpenPhoto.Filter = "Photo Files (*.jpg)|*.jpg";
  
              DialogResult result = ofd_OpenPhoto.ShowDialog();
  
              if (result == System.Windows.Forms.DialogResult.OK)
              {
                  string file_name;
                  if (ofd_OpenPhoto.FileName != null)
                  {
                      try
                      {
                          file_name = ofd_OpenPhoto.FileName.Substring(ofd_OpenPhoto.FileName.LastIndexOf("\\") + 1);
                          txt_PhotoPath.Text = file_name.Substring(0, file_name.LastIndexOf("."));
  
                          Emgu.CV.Image&lt;Bgr, Byte&gt; img_o = new Emgu.CV.Image&lt;Bgr, byte&gt;(ofd_OpenPhoto.FileName);
                          pb_PhotoViewer_O.Image = img_o.ToBitmap();
                          if (pb_PhotoViewer_O.Image != null)
                          {
                              try
                              {
                                  Bitmap image = new Bitmap(ofd_OpenPhoto.FileName);
                                  tessnet2.Tesseract ocr = new tessnet2.Tesseract();
                                  ocr.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
                                  ocr.Init(@"C:\\Program Files (x86)\\Tesseract-OCR", "eng", false);
                                  List&lt;tessnet2.Word&gt; result1 = ocr.DoOCR(image, Rectangle.Empty);
                                  txt_ExtractedNumber.Text = result1.ToString();
                              }
                              catch (Exception ex)
                              {
  
                              }
                          }
                      }
                      catch (Exception ex)
                      {
                          //e.Message();
                      }
                  }
              }
          }
  </code></pre>
  
  <p>This is my code.
  Thanks. </p>