"System.OutOfMemoryException" in C# Visual Studio 2019 large elements [closed]
I need to initialize 2-d array with .6 billion * 10-k element but I end up with
System.OutOfMemoryException
I am using C# Visual Studio 2019.
I pasted the <gcAllowVeryLargeObjects enabled="true"/>
in app.config
.
I doubt you have all the memory available.
6billion*10k*4byte/int= 240000 GB