ArrayList list = new ArrayList(); for(int i = 0; i < 1000; i++) { list.Add(i); Log(i.ToString() + " " + Debug.GC(true).ToString()); }
And it seems that an OutOfMemoryException is raised very early... After 473 elements... and 14844 Bytes unused in the RAM
469 14940
470 14916
471 14892
472 14868
473 14844
#### Exception System.OutOfMemoryException - CLR_E_OUT_OF_MEMORY (1) ####
What is going on ?