C++ program halts after dynamic memory allocation
<p>I'm having problem with a copying method in a simple C++ program.
Everytime I call copy:</p>

<pre><code>Sudoku::SudokuNode** Sudoku::copy(SudokuNode** sudokuBoard)
{
  SudokuNode** tempSudokuBoard = new SudokuNode*[9];
  for(int i = 0; i&lt;9; i++)
  {
   tempSudokuBoard[i] = new SudokuNode[9];
   for(int j = 0; j&lt;9; j++)
   {
    tempSudokuBoard[i][j].currentInteger = sudokuBoard[i][j].currentInteger;
    for(vector&lt;int&gt;::iterator iter = sudokuBoard[i][j].possibleIntegers.begin(); iter!= sudokuBoard[i][j].possibleIntegers.end();)
    {
     tempSudokuBoard[i][j].possibleIntegers.push_back(*iter);
    }
   }
  }
  return tempSudokuBoard;
}
</code></pre>

<p>The program seems to completely halt, not returning a a visible error. </p>

<p>If I try to debug the program, the debugger works fine until I arrive at the copy method. Then the debugger displays a dialog box saying:</p>

<p>There is no source code available for the current location.</p>

<p>Any idea what is wrong?</p>
