title: OpenCV 2.4 error 0xc0000005 in Windows 7 64 bit
body: <p>I am using CodeBlocks in my windows 7 64 bit and I use MinGw for my default c/c++ compiler.</p>
  
  <p>Few days ago I need to use OpenCV, after I struggle a lot of error, I get unsolveable error like this :</p>
  
  <p><a href="https://i.stack.imgur.com/eqpGf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eqpGf.png" alt="img"></a>
  </p>
  
  <p><a href="https://i.stack.imgur.com/jN6db.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jN6db.png" alt="img2"></a>
  </p>
  
  <p>The sample code: </p>
  
  <pre><code>#include "cv.h"
  #include "highgui.h"
  
  int main( int argc, char** argv ) {
      IplImage* img = cvLoadImage( argv[1] );
      cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE );
      cvShowImage( "Example1", img );
      cvWaitKey(0);
      cvReleaseImage( &amp;img );
      cvDestroyWindow( "Example1" );
  }
  </code></pre>
  
  <p>I believe my linked &amp; directory setting is correct. So please help me :) I am about to give up :(</p>