Treenode added to itself - No Exception?

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
 
R

Roger Rabbit

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
 

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

Top