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 

Memory leak in VirtualTree?

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



Joined: 14 Jun 2011
Posts: 3

PostPosted: Tue Jun 14, 2011 5:09 am    Post subject: Memory leak in VirtualTree? Reply with quote

Hello

Recently we found memory leak in our system. And profiler shows a lot of objects with type Style and PropertyChangedEventHandler.
I researched a problem and found next:

1. Method OnPaint of CellWidget or RowWidget raises method GetSelectedStyle.
2. Method GetSelectedStyle raises method Copy of Style object
3. Method Style.Copy(Style, Style) creates new instance of Style and give to constructor object of StyleDelta.
4. Constructor adds PropertyChangedEventHandler for PropertyChanged event.

It means that on every paint object StyleDelta of VirtualTree.RowSelectedStyle (or VirtualTree.RowSelectedUnfocusedStyle) gets new event handler.

Could you help us? May be it is our bug?

We use VirtualTree 3.11.2.

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



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jun 14, 2011 11:59 am    Post subject: Reply with quote

Thanks for posting. I've taken a quick look at the issue and it looks like there may be a bug there. I will do some further investigation and get back to you as soon as possible.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
pavelbelousov



Joined: 14 Jun 2011
Posts: 3

PostPosted: Tue Jun 14, 2011 12:00 pm    Post subject: Reply with quote

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



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Jun 17, 2011 5:57 am    Post subject: Reply with quote

OK we think we have identified and fixed this issue. I will send you a private message with a download link for a beta version to allow you to test the fix. If that is OK we will release it.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
pavelbelousov



Joined: 14 Jun 2011
Posts: 3

PostPosted: Fri Jun 17, 2011 6:01 am    Post subject: Reply with quote

Thank you, I'll try beta version on Monday
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jul 06, 2011 4:30 am    Post subject: Reply with quote

This issue has now been fixed in Version 3.15.2 and 4.1.2
_________________
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