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 

reentrency issue with click events

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



Joined: 13 Dec 2011
Posts: 2

PostPosted: Mon Jul 16, 2012 12:04 pm    Post subject: reentrency issue with click events Reply with quote

If, inside a CellDoubleClick event handler, I clear the list of items, I end up, after all mouse messages are processed, with a Disposed row (the one I double-clicked) as FocusRow and SelectedRow.

I got rid of this problem by overriding SelectRow, SetSelectedRow, SetFocusRow and FocusRow to do nothing if the argument Row is Disposed.

My guess is that you determine the clicked row, call various handlers (click, double click, mouse up) on it, and finally make it focused/selected without checking that it is still valid.

I think that, whenever you perform a sequence of actions on a row, and one of them is a a public event handler, you should check after calling the event that the row was not destroyed, and, if it was, interrupt the sequence.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Jul 16, 2012 12:49 pm    Post subject: Reply with quote

We will take a look at this issue and see what we can do.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Jul 23, 2012 9:20 am    Post subject: Reply with quote

Version 4.4.0 has now been released and fixes this issue.
_________________
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