title: Task parallel library , release build and out of memory exception
body: <p>I have a piece of code that itrates over a 2 GB PDF, extracts information and using this piece of code inserts into a DB.</p>
  
  <pre><code>for( int i = 0 ; i &lt; the length of the file ; i++)
  {
    read something 
  
    Task t = new Task(() =&gt; Update(newmerch), TaskCreationOptions.PreferFairness);
                              t.Start();
  
  }
  </code></pre>
  
  <p>When I run this code in release mode, I am getting an out of memory exception, while in debug build it works fine.</p>
  
  <p>Any thoughts would be greatly appreciated.</p>