I have a 2 GB machine. Before running my exe, I have 1.1 GB of free memory. When I run exe, which is only one line, which you can find below, I get an exception in memory.
I expect the following line to use something around 600 million bytes. Does the MemoryStream class use more memory than initialized capacity?
MemoryStream memory = new MemoryStream(600000000);
source share