How to diagnose windows-specific memory problems in C++
<p>I made a few changes to a program that uses many vector::resize, vector::reserve, and memcopy operations in order to manipulate a buffer for reading data from files. I ran my unit tests on Linux and they passed with flying colors, however when I ran the same tests on a Windows machine I am seeing a <code>memory access violation occurred at address 0x0038e000, while attempting to read inaccessible data</code>.</p>

<p>I have taken some advice I read online and ran Valgrind against my program in an attempt to detect memory leaks/issues, however it came back with "All heap blocks were freed, no leaks are possible".</p>

<p>Any other advice on how to go about seeking out the cause of memory errors in Windows? </p>

<p>Thanks!</p>