Exception of type System.StackOverflowException was thrown.

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);
 
M

Marina Levit [MVP]

This code wouldn't cause a stack overflow exception. That usually happens
when you have a recursive function that never ends the recursion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top