title: Unhandled exception on OpenCV+VS2010
body: <p>I can build and execute the code below successfully :</p>
  
  <pre><code> IplImage* img = cvLoadImage("C:\\hello.jpg");
   cvNamedWindow("myfirstwindow");
   cvShowImage("myfirstwindow", img);
  </code></pre>
  
  <p>But I got the unhandled exception when executed the code below:</p>
  
  <pre><code>    cv::Mat image= cv::imread("boldt.jpg");
      cv::namedWindow("Image");
      cv::imshow("Image",image);
  </code></pre>
  
  <p>although,I can build the code successfully.</p>
  
  <p>I'm using opencv2.2 with VS2010 x86 version on windows 7 x86 version.
  please help !</p>
  
  <p>update: I tried it on winxp ,and it works fine...and it works fine with win7 on Release mode only.</p>