title: OpenCV cvHaarDetectObject error
body: <p>I am making a project in Visual Studio 2010 using Qt4.8.0 and OpenCV2.3.1 library. Everything is fine as long as I don't use</p>
  
  <pre><code>cvHaarDetectObjects()
  </code></pre>
  
  <p>function. The program was compiled and built without problems, but when I try to run the application the error 0xc000007b appears. I've done similar program in win console and this function work properly. Why am I receiving this error message? I also try to use:</p>
  
  <pre><code>CascadeClassifier *haar;
  haar-&gt;load("haarcascade_frontalface_alt.xml");
  </code></pre>
  
  <p>but it doesn't work even in console.</p>
  
  <p>Example code</p>
  
  <p>MainWindow.cpp:</p>
  
  <pre><code>MainWindow::MainWindow()
  {
  temp = cvCreateImage(cvSize(200, 200), 8, 1);
  haarface = (CvHaarClassifierCascade*) cvLoad("haarcascade_frontalface_alt.xml");
  storage = cvCreateMemStorage(0);
  twarze = cvHaarDetectObjects(temp, haarface, storage, 1.1, 3, CV_HAAR_DO_CANNY_PRUNING, cvSize(100,100));
  }
  </code></pre>
  
  <p>MainWindow.h:</p>
  
  <pre><code>class MainWindow
  {
  private:
      CvMemStorage *pamiec;   
      CvHaarClassifierCascade * haarface;
      IplImage *temp2;
      CvSeq *twarze;
  public:
      MainWindow(void);
  };
  </code></pre>
  
  <p>Maybe it something wrong with .xml files?</p>