Getting memory error trying to debug manage memory

2020-08-09 07:51发布

问题:

I'm trying to "Debug Managed Memory" with Visual Studio 2015 Enterprise Edition. The file is at 1.2GB and after while loading I get the error message "Memory analysis could not be completed due to insufficient memory" after have been pressing "Debug Managed Memory"

What can I do to still be able to look into the memory with the pdb files? Can I start Visual Studio 2015 with more memory (the computer has 25 GB memory free) I guess it has to do with Visual Studio being running with x86.

回答1:

It could be related to VisualStudio bug

see the following link

https://connect.microsoft.com/VisualStudio/feedback/details/2621837/debug-managed-memory-for-10-gb-memory-dump-files

as a workaround they are suggesting about turning off automatic symbol loading before starting analyzing dumps (i.e. Tools -> Options ->Debugging -> Symbols -> Select "only specified modules")



回答2:

This error not apperas when project compiled to x64 platform