Can’t create huge arrays

From your link:

Using this element in your application configuration file enables arrays that are larger than 2 GB in size, but does not change other limits on object size or array size:

The maximum index in any single dimension is 2,147,483,591 (0x7FFFFFC7) for byte arrays and arrays of single-byte structures, and 2,146,435,071 (0X7FEFFFFF) for other types.

See also What is the maximum length of an array in .NET on 64-bit Windows:

An array could theoretically have at most 2,147,483,647 elements, since it uses an int for indexing.

Leave a Comment