Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exception while calling Row.UpdateChildren(true, false)

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
CNET Channel
Guest





PostPosted: Fri Mar 17, 2006 9:32 am    Post subject: Exception while calling Row.UpdateChildren(true, false) Reply with quote

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





PostPosted: Fri Mar 17, 2006 9:46 am    Post subject: Reply with quote

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

PostPosted: Sun Mar 19, 2006 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group