Delphi / Object Pascal · Exception
What does Runtime Error 202: Stack overflow error mean in Delphi / Object Pascal?
The call stack exceeded its allocated size, almost always from unbounded or runaway recursion.
The call stack exceeded its allocated size, almost always from unbounded or runaway recursion.
Check the recursive function involved for a base case that is not actually being reached, and confirm the recursion depth is bounded by something under the program's control, not by external input.