View previous topic :: View next topic |
Author |
Message |
CNET Channel Guest
|
Posted: Fri Mar 17, 2006 9:32 am Post subject: Exception while calling Row.UpdateChildren(true, false) |
|
|
Object reference not set to an instance of an object.
at Infralution.Controls.VirtualTree.Row.UpdateChildrenNoReindex(Boolean reloadChildren, Boolean recursive)
at Infralution.Controls.VirtualTree.Row.UpdateChildren(Boolean reloadChildren, Boolean recursive) |
|
Back to top |
|
|
CNET Channel Guest
|
Posted: Fri Mar 17, 2006 9:46 am Post subject: |
|
|
I'm trying to perform continiuos operation using backgroundworker class.
In GetChildren event I do the following:
e.Children = new string[] { "Loading..." };
Run BGWorker
and after worker completes this operation I call Row.UpdateChildren(true, false) in UI thread and again in GetChildren event assing already loaded children collection, but very often tree does't redraw child nodes until I manualy mouse click inside the tree and sometimes I get described above exception. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Mar 19, 2006 6:37 am Post subject: |
|
|
I suspect this is a sychnronization issue - and these can be very difficult to pin down. If you can email support@infralution.com a zipped sample project that illustrates the problem we will take a look at it. _________________ Infralution Support |
|
Back to top |
|
|
|