title: _CrtDumpMemoryLeaks() not outputting anything
body: <p>I'm writing a Vulkan API demo in C++ and it would be useful to have my program output any memory leaks to the output window. <code>_CrtDumpMemoryLeaks()</code> doesn't output anything however. </p>
  
  <p>The project is built in debug mode. Here's part of the code I have:</p>
  
  <pre><code>#define _CRTDBG_MAP_ALLOC
  #include &lt;stdlib.h&gt;  
  #include &lt;crtdbg.h&gt;
  </code></pre>
  
  <p>at the start of <code>int main()</code>:</p>
  
  <pre><code>_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
  _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
  _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
  _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT);
  _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
  _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);
  </code></pre>
  
  <p>at the end:</p>
  
  <pre><code>_CrtDumpMemoryLeaks();
  return 0;
  </code></pre>
  
  <p>I create a few objects inbetween without deleting them so I know there are memory leaks.
  <code>_CrtDumpMemoryLeaks()</code> does return 1, but does not output anything.</p>
  
  <p><code>_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );</code> doesn't work either.</p>