using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace testes
{
class Program
{
static void Main(string[] args)
{
Int64[] a = new Int64[300000000];
a[0] = 10;
}
}
}
After run this code I receive a System.OutOfMemoryException but my computer has 8 gigas of ram free. Could you please help me?
I am a beginner with C#. I already change the compilation target cpu to x64 thinking that only this would be sufficient. thanks Luc