|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Exception of type System.StackOverflowException was thrown.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. 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); > > > >
Other interesting topics
|
|||||||||||||||||||||||