Details: I’m profiling a C++ application using Visual Studio Performance Profiler (Memory Usage tool). The code base is identical across two systems, but memory leaks persist on one machine while the other shows no leaks.
System Details:
PC where leaks were fixed after code fix:
Visual Studio Version: 15.9.78
OS: Windows 11 Pro
OS Build: 26200.7171
Build Configuration: Debug
Profiler Settings: Memory Usage snapshots compared after identical workflows
PC where leaks still exist after code fix:
Visual Studio Version: 15.9.78
OS: Windows 11 Pro
OS Build: 26200.7171
Build Configuration: Debug
Profiler Settings: Memory Usage snapshots compared after identical workflows
Questions:
What could cause the profiler to report leaks on one system but not another with the same code?
Could differences in OS, runtime libraries, or GC behavior affect results?
Any recommended steps to validate profiler accuracy across systems?