I'm trying to load 2.5 million rows of data from a csv file as a string. This is x64 (not 32bit) for visual studio (Debug = Any CPU, Release = Any CPU. Windows is also 64 bit.)
I've preloaded the empty database I'm populating:
public static string[,] allNames = new string[2500000, 12];
I then proceed to fill it. I previously only had 2 million rows, and it was working fine. I then adding more rows, and got the memory error.
Looking at task manager, I could clearly see of my 16gb I had 4gb still free, but I went and bought 16gb more ram anyways as I couldn't figure out what the problem could be.
Lo and behold, the error still comes up. I tried splitting the data into two different dataframes, and it still gives the error at the same spot. Removing one or two columns, makes it go a bit farther, or till the end if it's one of the columns with longer strings (longest strings are almost 1000 characters long).
This is Visual Studio 2019. Any help would be great!