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 

cross threading error

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



Joined: 09 Jun 2010
Posts: 21

PostPosted: Sun Sep 05, 2010 1:31 pm    Post subject: cross threading error Reply with quote

FYI- I get a cross threading error when using build 3.15.0.0 and set the max height to 120 and have more data than will fit. If I comment out the e.RowData.AutoFitHeight = True then I don't get the error.

I have the VirtualTree on a tab and if I select that tab in debug mode and set focus to the tree and then stop debugging I get the error.

Once I set the row max height property to 0 then it works fine.

Thanks
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Sep 05, 2010 10:42 pm    Post subject: Reply with quote

What exact exception and error message are you getting?
What is the callstack?
Do you get the error if you aren't debugging?

Virtual Tree doesn't itself create any threads - it just uses the main UI thread. This means that if there is a cross-threading issue occuring it must be as a result of some interaction with your application code. That's where the stack trace may help.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
morgenweck



Joined: 09 Jun 2010
Posts: 21

PostPosted: Sun Sep 05, 2010 11:11 pm    Post subject: Reply with quote

As expected- I can't reproduce it either. Of cource it did it every time until I found the max row height property. If it happens again I will copy the stack. FYI- I did not have any in production only in debug and only when I stopped the app. Sorry about that..
Back to top
View user's profile Send private message
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