title: OpenCV imread(filename) fails in debug mode when using release libraries
body: <p>I have some <strong>C++</strong> code and everything was working fine with <strong>OpenCV</strong> except the function <code>imread(file)</code>. It was finding correctly the file and loading the name, but it wasn't loading any data.</p>
  
  <pre><code>Mat pattImage = imread(fileName, 0);
  </code></pre>
  
  <p>After some reaserch on the web I realized that I was in debug mode but with the release <strong>OpenCV</strong> libraries, instead of the debug ones. </p>
  
  <pre><code>debug library:    opencv_core231d.lib
  release library:  opencv_core231.lib
  </code></pre>
  
  <p>Though it is the tipical stupid error I thought this shouldn't have anything to do, the debug libraries are supposed to allow <strong>OpenCV</strong> code debugging while the release libraries allow faster execution of the code, but I don't understand why imread was failing.</p>
  
  <p>Can anybody explain me the differences between <em>debug</em> and <em>release</em> libraries in <strong>OpenCV</strong> and why this error occurs? </p>
  
  <p>Is it an <strong>OpenCV</strong> bug?</p>