i m just writing the two lines in my windows application project
double[] results = new double[100000000];
double[] results1 = new double[100000000];
on second line(results1 ) i am getting the Exception 'System.OutOfMemoryException' was thrown.
well is my system Configuration is
RAM- 4 gb
OS - Windows 7
Processor - intel core to duo 2.93 Ghz
how can i resolve this error and why this error occurs
ok as most of the answer are realted to generic list
List<int> results1 = new List<int>();
List<int> results2 = new List<int>();
for (int i = 0; i <= 100000000; i++)
{
results1.Add(i);
results2.Add(i);
}
i am getting the same error here also