I'm a little bit out of ideas. With the following code I try to instace a byte array > than 2GB:
var b = Array.CreateInstance(typeof(byte), uint.MaxValue);
Every time it will cause an System.ArgumentOutOfRangeException
excpetion with the message that arrays larger then 2GB are not supported
.
My App.config is currently the following:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
</configuration>
Further the target platform of the project is x64
I'd be grateful for any ideas. Should there be any information missing I will update the question so as soon as possible.
Update 1
I also tried uint.MaxValue