C# Increase Heap Size - Is It Possible
c#
Solution
.Net does that automatically.
Looks like you have reached the limit of the memory one .Net process can use for its objects (on 32 bit machine this is 2 standard or 3GB by using the /3GB boot switch. Credits to Leppie & Eric Lippert for the info).
Rethink your algorithm, or perhaps a change to a 64 bit machine might help.
Problem
I have an out of memory exception using C# when reading in a massive file I need to change the code but for the time being can I increase the heap size (like I would in Java) as a shaort term fix?