title: Recursive code eating up whole memory
body: <p>I have a C++ project which has a extremely recursive function. This project when deployed and run on the dedicated machine it is eating upto 12 GB of memory. Previously, this process used to fail at 2GB limit. Hence, I converted this entire solution having 20 projects to 64 bit platform on visual studio 2010 platform. Now, it doesn't stop at 2 GB but eating up almost my whole RAM. Total RAM usage is 15.9 GB out of total 16 GB. I am using COM+ to run these application as dllhost. My questions are:</p>
  
  <ol>
  <li>How to limit the memory being allocated fully causing failure of the process?</li>
  <li>Does windows frees the memory after recursion is over? Because I am not seeing this process releasing memory until I kill this process.</li>
  <li>Terminating case is not the problem, I guess, beacuse my job is succeeded by using Expiration Time option in Recycling in Component Services.Or is there any other problem?</li>
  </ol>