Coming from a java background, one of the things I am used to is telling the JVM what the maximum heap size should be. If the running program tries to swallow more than is
You might want to look at System.Runtime.MemoryFailPoint.