
This is my system performance, as you can see I have plenty of ram (12gb) DDR3.

here's my savegame
[X(]This is my system performance, as you can see I have plenty of ram (12gb) DDR3.
ORIGINAL: JudgeDredd
[X(]This is my system performance, as you can see I have plenty of ram (12gb) DDR3.
Code: Select all
struct bla
// 160 bytes of data
{
long a1, a2, a3, a4, a5, a6, a7, a8, a9, a10;
long b1, b2, b3, b4, b5, b6, b7, b8, b9, b10;
public bla(int i)
{
a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = a10 = 0;
b1 = b2 = b3 = b4 = b5 = b6 = b7 = b8 = b9 = b10 = i;
}
}
private void crashme()
{
// pre allocate a huge dump, we're interested in what happens beyond that.
Dictionary<string, bla> dump = new Dictionary<string, bla>(500000);
for (int i = 0; i < 100000000; ++i)
{
try
{
dump.Add(i.ToString(), new bla(i));
}
catch (Exception ee)
{
MessageBox.Show(this, String.Format("adding to the dump crashed at {0} with excpetion {1}", i, ee.Message));
break;
}
}
}
Code: Select all
// string type uses a character array internally that is dynamically expanded while reading in a text file.
// Will crash beyond ~80 MB
string fileContents = File.ReadAllText("c:\hugetextfile.txt");