27

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.

Venkat
  • 2,549
  • 2
  • 28
  • 61
NPehrsson
  • 1,548
  • 18
  • 26
  • You could analyze it with WinDbg – Thomas Weller Dec 01 '15 at 22:45
  • 1
    I know, but I rather not if possible. – NPehrsson Dec 03 '15 at 00:11
  • One way is to create dmp file and analyze it with VS 2015 as written here https://msdn.microsoft.com/en-us/library/dn342825.aspx but here comes the problem that is only available for ultimate or enterprise as written here http://stackoverflow.com/questions/21241905/why-i-can-not-find-debug-managed-memory-on-actions-menu – Emil Jan 28 '16 at 22:10
  • 1
    @batmaci that is exactly what I try to do, but the dump file was to big. – NPehrsson Feb 02 '16 at 00:01

2 Answers2

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")

cristallo
  • 1,951
  • 2
  • 25
  • 42
0

This error not apperas when project compiled to x64 platform

Sel
  • 1,934
  • 1
  • 22
  • 13