Home All Groups Group Topic Archive Search About

Exception of type System.StackOverflowException was thrown.

Author
27 Mar 2006 11:19 PM
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);

Author
28 Mar 2006 1:54 PM
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.

Show quote
"Esref DURNA" <esref_du***@microsoft.com> wrote in message
news:uwrQrTfUGHA.4276@TK2MSFTNGP10.phx.gbl...
> 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);
>
>
>
>

AddThis Social Bookmark Button