Handler Stack Overflow?!?!?!

  • Thread starter Thread starter tomb
  • Start date Start date
T

tomb

Please help!

I have a handler in a class that handles when a column in a table is
modified, as such:

dtWhatif = dsOp.Tables("whatif")
AddHandler dtWhatif.ColumnChanged, New
DataColumnChangeEventHandler(AddressOf Whatif_Changed)

When testing this, I got an error: An unhandled exception of type
'System.StackOverflowException' occurred in system.dll

So I put a debug statement in to see why the stack is overflowing. This
handler was called 4082 times! All I did was change the value in one
cell of a datagrid!

Why? Why?

Tom
 
What are you doing in the handler?




Please help!

I have a handler in a class that handles when a column in a table is
modified, as such:

dtWhatif = dsOp.Tables("whatif")
AddHandler dtWhatif.ColumnChanged, New
DataColumnChangeEventHandler(AddressOf Whatif_Changed)

When testing this, I got an error: An unhandled exception of type
'System.StackOverflowException' occurred in system.dll

So I put a debug statement in to see why the stack is overflowing. This
handler was called 4082 times! All I did was change the value in one cell
of a datagrid!

Why? Why?

Tom
 
At the moment I'm not doing anything in the handler except calling an
empty function. I just wanted to test the handler. Obviously it
doesn't work as expected, which was to be called once.

Tom
 

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

Back
Top