Questions tagged [gcallowverylargeobjects]

gcAllowVeryLargeObjects

Example:

<configuration>
  <runtime>
    <gcAllowVeryLargeObjects enabled="true" />
  </runtime>
</configuration>
19 questions
0
votes
2 answers

gcAllowVeryLargeObjects in UnitTests

In my C# app I use gcAllowVeryLargeObjects because I am doing image processing with large datasets, resulting in extensive RAM usage. Now I want to write some UnitTests and I am running into the same situations I had without…
NilesDavis
  • 69
  • 1
  • 3
0
votes
2 answers

gcAllowVeryLargeObjects is set but still causing System.ArgumentOutOfRangeException

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…
0
votes
0 answers

Integrating Regex with my custom 'BigStringBuilder' class

Due to the ~2.15 billion element limitation with the .NET Framework (even taking into account 64bit Windows, .NET 4.5+, and gcAllowVeryLargeObjects), I needed to create my own BigStringBuilder to manipulate extremely large strings. Unfortunately,…
Dan W
  • 3,520
  • 7
  • 42
  • 69
-2
votes
1 answer

gcallowverylargeobjects not solving dimension limitation in C#

In my C# code, I need to include a matrix in size 13805*55223; which I believe is not that large. To overcome RAM limitation, I am using gcAllowVeryLargeObjects, and I have also unchecked prefer 32-Bit system. Doing all of that, I still face "Array…
Mohamad S.
  • 21
  • 1
  • 2
1
2