As per this website here,the MaxSize of an array can be more than 2GB in the x64 environments and the actual elements it can hold is UInt32.MaxValue.
So,I've made my app.config like :
<configuration> <runtime> <gcAllowVeryLargeObjects enabled="true" /> </runtime> </configuration> and my array declaration and initialization is :
int idsCount = 999999999; long[] ids = new long[idsCount]; which is much less than the UInt32.MaxValue,but an OutofMemory Exception was thrown.
Am I doing any mistake?
My Framework version is also 4.5
ints orchars?int[],it is the same :(