title: Error: ZwAllocateVirtualMemory Failed
body: <p>In C when allocating memory,</p>
  
  <pre><code>char * undecoded_query_array = (char*) malloc(100); 
  </code></pre>
  
  <p>I am receiving the following error:</p>
  
  <p>warning: ZwAllocateVirtualMemory failed c0000018 for heap 006D0000 (base 006D2000, size 0002F000)</p>
  
  <p>Would anyone understand why this is happening? It's quite strange because, I noticed the problem when I changed the command line arguments to my program... When I changed it back to the original argument the program works again??</p>
  
  <p>I also found that if I change the amount I allocate from 100 to 10000, the program works properly again. </p>
  
  <p>Not sure if these findings are relevant or if they relate to the problem at hand.</p>
  
  <p>Thanks.</p>