title: PLINQ vs. LINQ: OutOfMemoryException for LINQ but not PLINQ
body: <p>This is an interesting one. First of all the setup:</p>
  
  <ul>
  <li>8GB RAM</li>
  <li>Windows 7 Pro x64</li>
  <li>VS2010 Ultimate</li>
  </ul>
  
  <p>I have a memory intensive algorithm that crunches through data using LINQ/PLINQ. The initial implementation relied on PLINQ. A unit test succeeds. But remarkably while trying to see what kind of performance benefits I am getting from using PLINQ vs. LINQ, the same test fails with OutOfMemoryException when parallelism is disabled. </p>
  
  <p>Is there any reasonable explanation? I can consistently reproduce that. I didn't check but could I be running out not memory but some resources instead which are allocated differently depending on threading model? Ideas?</p>