LINQPad(AnyCPU) not respect gcAllowVeryLargeObjects in app.config runtime section

I'm trying to use gcAllowVeryLargeObjects to test some feature like this:
new int[0X7FEFFFFF]
It's app.config:
<configuration>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
</configuration>
This is good running in Visual Studio but cannot be running in LINQPad(with OutOfMemoryException).
Is there any solution for this?

Comments

  • It's possible that you might need to add this to the LINQPad host process's config as well (LINQPad.exe.config).
  • Thanks, I added this to host process's config "LINQPad.exe.config" and it's working :smile:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!