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

Re: Treenode added to itself - No Exception? by Lloyd

Lloyd
Tue Oct 18 01:22:36 CDT 2005

I would consider the possibility it's a but of the TreeView....

"Roger Rabbit" <roger@rabbit.com> wrote in message
news:ukEqVg50FHA.1028@TK2MSFTNGP12.phx.gbl...
> 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
>
>



Re: Treenode added to itself - No Exception? by Roger

Roger
Tue Oct 18 16:12:56 CDT 2005

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


"Lloyd Dupont" <net.galador@ld> wrote in message
news:uYRXcx60FHA.2328@TK2MSFTNGP10.phx.gbl...
> I would consider the possibility it's a but of the TreeView....
>
> "Roger Rabbit" <roger@rabbit.com> wrote in message
> news:ukEqVg50FHA.1028@TK2MSFTNGP12.phx.gbl...
> > 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
> >
> >
>
>