<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 3.4.2</li>
<li>Operating System / Platform =&gt; Haiku</li>
<li>Compiler =&gt; GCC 7.3.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Testlogs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[----------] 1 test from Core_globbing
[ RUN      ] Core_globbing.accuracy
/sources/opencv-3.4.2/modules/core/test/test_io.cpp:552: Failure
Expected: (lenas.size()) &gt; (pngLenas.size()), actual: 0 vs 0
[  FAILED  ] Core_globbing.accuracy (0 ms)
[----------] 1 test from Core_globbing (0 ms total)"><pre class="notranslate"><code class="notranslate">[----------] 1 test from Core_globbing
[ RUN      ] Core_globbing.accuracy
/sources/opencv-3.4.2/modules/core/test/test_io.cpp:552: Failure
Expected: (lenas.size()) &gt; (pngLenas.size()), actual: 0 vs 0
[  FAILED  ] Core_globbing.accuracy (0 ms)
[----------] 1 test from Core_globbing (0 ms total)
</code></pre></div>
<p dir="auto">This is not the only failing test.</p>
<p dir="auto">Current recipe: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="347670882" data-permission-text="Title is private" data-url="https://github.com/haikuports/haikuports/issues/2891" data-hovercard-type="pull_request" data-hovercard-url="/haikuports/haikuports/pull/2891/hovercard" href="https://github.com/haikuports/haikuports/pull/2891">haikuports/haikuports#2891</a></p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">I did an out of tree build. As far as i can see, the testcases cannot find the assets file, thus fails. (But unsure)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mkdir build_haiku &amp;&amp; cd build_haiku
cmake ..
make test"><pre class="notranslate"><code class="notranslate">mkdir build_haiku &amp;&amp; cd build_haiku
cmake ..
make test
</code></pre></div>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; :3.4.1 and 4.1.0 Tested</li>
<li>Operating System / Platform =&gt;Windows 7/</li>
<li>Compiler =&gt; : Visual studio 2017 pro</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">Hi. I'm using opencv multiple projects. But I have a problem with using opencv.<br>
When i use opencv, Opencv maeks memory leaks on debug mode, actually not real leak but false leak alarm.</p>
<p dir="auto">Here is the leak script.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41726365/58147271-b8dce880-7c94-11e9-95e7-dae1bd51af5b.PNG"><img src="https://user-images.githubusercontent.com/41726365/58147271-b8dce880-7c94-11e9-95e7-dae1bd51af5b.PNG" alt="cap" style="max-width: 100%;"></a></p>
<p dir="auto">From searching, I found the sites(<a href="http://www.pklab.com/index.php?lang=EN&amp;id=397" rel="nofollow">http://www.pklab.com/index.php?lang=EN&amp;id=397</a>) so I applied the method that using delay loaded DLL, but  it does not work.<br>
(I cannnot use "Static link for MFC" because of my project environments.)</p>
<p dir="auto">I know that this is not real leak but when i'm using debugging mode, it makes me annoying.<br>
How can  I fix this problem??</p>
<p dir="auto">Project Properties &gt; Configuration Properties &gt; Debugging&gt; Environment &gt; PATH=D:\Downloads\opencv\build\x64\vc15\bin;%PATH%<br>
Project Properties &gt; Configuration Properties &gt; C/C++&gt;General &gt;Additional Include Directories &gt; D:\Downloads\opencv\build\include<br>
Project Properties &gt; Configuration Properties &gt; Linker &gt; General &gt; Additional Library Directories &gt; D:\Downloads\opencv\build\x64\vc15\lib<br>
Project Properties &gt; Configuration Properties &gt; Linker &gt; Input &gt; Additional Dependencies &gt; opencv_world410d.lib<br>
Project Properties &gt; Configuration Properties &gt; Linker &gt; Input &gt; Delay Loaded Dlls &gt; opencv_world410d.dll</p>
<h5 dir="auto">Steps to reproduce</h5>

<p dir="auto">This is not my project code but it is same false leak using opencv.</p>
<p dir="auto">// Here is the code<br>
#include &lt;opencv2/highgui.hpp&gt;<br>
#include &lt;opencv2/imgproc.hpp&gt;<br>
#include </p>
<p dir="auto">using namespace cv;<br>
using namespace std;</p>
<p dir="auto">#include &lt;stdlib.h&gt;<br>
#include &lt;crtdbg.h&gt;</p>
<p dir="auto">int main(int argc, char** argv)<br>
{<br>
Mat img_original, img_gray;<br>
//Image Load<br>
img_original = imread("1.jpg", IMREAD_COLOR);<br>
if (img_original.empty())<br>
{<br>
cout &lt;&lt; "Could not open or find the image" &lt;&lt; std::endl;<br>
return -1;<br>
}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cout &lt;&lt; &quot;Open CV Version : &quot; &lt;&lt; CV_VERSION &lt;&lt; std::endl;

//Create Window 
namedWindow(&quot;original image&quot;, WINDOW_AUTOSIZE);

//Show in Window  
imshow(&quot;original image&quot;, img_original);

waitKey(0);

_CrtDumpMemoryLeaks();
return 0;"><pre class="notranslate"><code class="notranslate">cout &lt;&lt; "Open CV Version : " &lt;&lt; CV_VERSION &lt;&lt; std::endl;

//Create Window 
namedWindow("original image", WINDOW_AUTOSIZE);

//Show in Window  
imshow("original image", img_original);

waitKey(0);

_CrtDumpMemoryLeaks();
return 0;
</code></pre></div>
<p dir="auto">}</p>