title: First-chance exception at 0x7548812f (KernelBase.dll) in videoread.exe: Microsoft C++ exception: cv::Exception at memory location 0x002cf898
body: <p>I'm using opencv 2.4.10 with visual studio 2010 in Windows 7 32bit OS... </p>
  
  <p>As I'm new to this area, first I tried with displaying image... It works well... But when I'm displaying video, I got this exception... And the code is provided below... Thank you...</p>
  
  <pre><code>  #include &lt;opencv2/core/core.hpp&gt;
    #include &lt;opencv2/highgui/highgui.hpp&gt;
    #include &lt;iostream&gt;
    using namespace cv;
    int main(int argc, char** argv)
  {
  string filename = "C:/Users/Public/Videos/Sample Videos/Wildlife.wmv";
  VideoCapture capture(filename);
  Mat frame;
  if( !capture.isOpened() )
      throw "Error when reading steam_avi";
  namedWindow( "w", 1);
  for( ; ; )
  {
      capture &gt;&gt; frame;
      imshow("w", frame);
      waitKey(20); 
  }
  waitKey(0);
  }
  </code></pre>