title: what is causing Unhandled exception at memory : Stack overflow
body: <p>I'm new to C++ and I'm implementing the Canny edge detector algorithm by myself. for that, I've declared some 2D arrays. it gives me the error " Unhandled exception at 0x000A1809 in ConsoleApplication3.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x00E92000)" </p>
  
  <p>I minimized the number of elements of my arrays, and it worked. but when I need arrays with more elements</p>
  
  <pre><code>//2.Gradian Calculation: a.Calculating Gx and Gy   b.Calculation sqrt(Gx^2 + Gy^2)   c.Calculating the gradiant orientation
  int Fx[3][3] = { {-1,0,1},{-2,0,2},{-1,0,1} };
  int Fy[3][3] = { {1,2,1},{0,0,0},{-1,-2,-1} };
  int image[100][100] = { 50 };
  int gradian_x[100][100] = { 0 };
  int gradian_y[100][100] = { 0 };
  double edgeStrength[100][100] = { 0 };
  
  //Calculating Gx
  for (int i = 1; i &lt; 99; i++)
  {
      for (int j = 1; j &lt; 99; j++)
      {
          gradian_x[j][i] = image[j - 1][i - 1] * Fx[0][0] + image[j][i - 1] * Fx[1][0] + image[j + 1][i - 1] * Fx[2][0] + image[j + 1][i + 1] * Fx[2][2] + image[j][i + 1] * Fx[1][2] + image[j - 1][i + 1] * Fx[0][2];
  
      }
  }
  </code></pre>