title: a bizarre "Project.exe has triggered a breakpoint."?
body: <p>just don't tell me google that, because I did it for the last 48 hours.
  this is my problem; I create a lon program, which execute many itterations; but in few itterations, this error comes ...</p>
  
  <pre><code>Critical error detected c0000374
  Project.exe has triggered a breakpoint.
  The program '[4452] Project.exe' has exited with code 0 (0x0).
  </code></pre>
  
  <p>so, Visual Studio 2012 opens newaop.cpp; which contains few line</p>
  
  <pre><code>// newaop -- operator new[](size_t) REPLACEABLE
  #include &lt;new&gt;
  
  void *__CRTDECL operator new[](size_t count) _THROW1(std::bad_alloc)
       {  // try to allocate count bytes for an array
  return (operator new(count));
  }
  
  /*
   * Copyright (c) 1992-2007 by P.J. Plauger.  ALL RIGHTS RESERVED.
   * Consult your license regarding permissions and restrictions.
   V5.03:0009 */
  </code></pre>
  
  <p>pointing to the return line...
  I searched so many; but nothing works; the problem in that, my program works for few itterations
  I tried to locate the instructions generating this erreor (with cout's) and I found this loop</p>
  
  <pre><code>for (int i = OriginalCadre.X.x + 1; i &lt; OriginalCadre.X.x + OriginalCadre.height; i++){
              for (int j = OriginalCadre.X.y + 1; j &lt; OriginalCadre.X.y + OriginalCadre.width; j++){
                  QuantityColor[Pattern_init[i][j]] ++;
              }
          }
  </code></pre>
  
  <p>this loop works at the begening for few itterations; which is bizarre !</p>