Treenode added to itself - No Exception?

  • Thread starter Thread starter Roger Rabbit
  • Start date Start date
R

Roger Rabbit

Hello

Ive just made a typo in some code that dynamically adds treenodes to a
parent node.
The result was something silly like this:

dim tn as new treenode("mytext")
...
tn.nodes.add(tn)

This didn't throw an exception but rather (i assume) recursively looped and
hung the application on a test debug and run. Does everyone else get this
kind behaviour? And if so why doesn;t it throw an exception? Treeview is a
UI control. Its impossible to draw this kind of behaviour....at least in
this dimension anyway.

RR
 
Do you get the same behaviour yourself then?

If you meant "bug" then you might be right however it always annoys me when
people who dont what they are talking about start blaming the framework for
"bugs" when its just that they, or in this case "I" dont have all the facts
about intended behaviour.

:=)

I cant think of a reason why this behaviour should ever be NOT be
exceptional however.

RR
 
Back
Top