Increasing the stack size???

  • Thread starter Thread starter Darryn
  • Start date Start date
D

Darryn

Hi

Please help...

i am running an application where one of my data validation funtions linked
to a Dataset event ColumnChanging keeps throwing a StackOverflowException!!!
My code is fine, i just have a deep method/function call going on.... how
can i increase the stack from it's default size which i beleive to be 1mb??

Thanks
 
I highly doubt that your function call is *that* deep.

Can you verify that ColumnChanging isn't performing a recursive operation?
 
If you are changing a column from within the column-change event, you may be
triggering a column change event, which may be changing the column again,
which triggers the event again, and so on, forever (or until the stack
overflows).

I'd look for that possibility.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top