Program executes incorrectly only when using Visual Profiler


I’ve finally got round to trying out the visual profiler. I’m using my own code with input data that is known to work, however when the profiler executes my code, it only works correctly for the first run. On all subsequent runs the results are all #QNAN. I’m also no

I’m using a C2075.


Have you correctly set the working directory and input parameters in the visual profile session settings window?

I believe I have, since the first profiler run produces expected results. It is only from run two onwards that the results are garbage.

Edit: run 3 exits with an out of memory error… however no memory is allocated at the point at which it complains of a lack of memory