Exception of type System.StackOverflowException was thrown.

  • Thread starter Thread starter Esref DURNA
  • Start date Start date
E

Esref DURNA

I
Exception of type System.StackOverflowException was thrown.
I m having this error sometimes and dont know why it comes.
it happends only at one table its a biggest one which have 500 records but
dot thinking that it was a big number for overflowing the stack.

DataRow newrow = table.NewRow();

newrow[0] = rprow.Title;

newrow[1] = rprow.AggFunc;

rprow.DataRow = newrow;

rprow.DataRowIndex = table.Rows.Count;

table.Rows.Add(newrow);
 
This code wouldn't cause a stack overflow exception. That usually happens
when you have a recursive function that never ends the recursion.
 
Back
Top