title: Error from ntdll.dll because of a malloc (C++)
body: <p>I met this error with my program, I never saw it before.</p>
  
  <p>Here is the part of the code which is responsible :</p>
  
  <pre><code>double *xx;
  xx = (double*) malloc(2*n*m*sizeof(double));
  </code></pre>
  
  <p>And the Visual Studio 2010 prompt text when debugging :</p>
  
  <blockquote>
    <p>Windows has triggered a breakpoint in calib.exe.</p>
    
    <p>This may be due to a corruption of the heap, which indicates a bug in
    calib.exe or any of the DLLs it has loaded.</p>
    
    <p>This may also be due to the user pressing F12 while calib.exe
    has focus.</p>
    
    <p>The output window may have more diagnostic information.</p>
  </blockquote>
  
  <p>I have a small experience in C++, for me it's a simple memory allocation, nothing more. What can be responsible of this error ? Few lines upper I also make a malloc for double, and no problems...</p>
  
  <p>Thank ou for helping,</p>
  
  <p>Clément</p>