title: Windows form freezes when try to call two functionalities
body: <p>I am working on some image processing stuffs using OpenCV, in visual Studio IDE (VC++).
  What I am doing is displaying a webcam output in the windows form application using a picture pox and in the mean time I want to call an algorithm which uses the same camera for image processing stuff. The form application freezes when I am trying to perform both works together.And note that I am using threads to call the algorithm implemented in a seperate class.</p>
  
  <p>Please help me to sort out this problem.</p>
  
  <p>THis is how I am using the threads within the button click event
  <code>$</code>
  HANDLE h = CreateThread( NULL, 0, &amp;(LPTHREAD_START_ROUTINE)Project::Form1::BGS(), this, 0, NULL );</p>
  
  <p>void BGS()
  {
  //calling the algorithm inside this method.
  }
  <code>$</code></p>