G
Guest
I have a reproducible scenario here where I have a TreeView that is displayed
on a Form.
I have a custom class defined in the base which is nothing more than a fancy
BindingList<T> While building the node, I add event handlers on the
..ListChanged event with definitions to rebuild the necessary parts of the
TreeView should their collections change.
I modify these collections with forms that are created and made visible with
ShowDialog(this).
Occasionally (about 20-30% of the time) when I modify the collection from
this alternate form, an Exception fires while the TreeView is getting rebuilt
saying that it cannot access a Disposed object.
I added a Disposed event handler and placed a breakpoint there, as well as
in the overrides Diposed method in the Designer.cs class. Neither were hit.
What is being thrown here?? I can't seem to find any reason for this, and it
only happens on one of my two development machines.
Would appreciate any help I can get. Also can re-explain anything that came
across confusing.
on a Form.
I have a custom class defined in the base which is nothing more than a fancy
BindingList<T> While building the node, I add event handlers on the
..ListChanged event with definitions to rebuild the necessary parts of the
TreeView should their collections change.
I modify these collections with forms that are created and made visible with
ShowDialog(this).
Occasionally (about 20-30% of the time) when I modify the collection from
this alternate form, an Exception fires while the TreeView is getting rebuilt
saying that it cannot access a Disposed object.
I added a Disposed event handler and placed a breakpoint there, as well as
in the overrides Diposed method in the Designer.cs class. Neither were hit.
What is being thrown here?? I can't seem to find any reason for this, and it
only happens on one of my two development machines.
Would appreciate any help I can get. Also can re-explain anything that came
across confusing.