Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you write gcAllowVeryLargeObjects using codebehind

how do I write this in c# in the code behind? gcAllowVeryLargeObjects I can't use a config file.

below is the config files version

   <configuration>
  <runtime>
    <gcAllowVeryLargeObjects enabled="true" />
  </runtime>
</configuration>
like image 212
Andre DeMattia Avatar asked Feb 28 '14 19:02

Andre DeMattia


1 Answers

You can't, because this configures how the runtime operates. You cannot modify how the runtime's garbage collector operates while the runtime is executing. You must do it before the runtime, thus the configuration requirement.

like image 51
Haney Avatar answered Sep 28 '22 06:09

Haney