View previous topic :: View next topic |
Author |
Message |
pavelbelousov
Joined: 14 Jun 2011 Posts: 3
|
Posted: Tue Jun 14, 2011 5:09 am Post subject: Memory leak in VirtualTree? |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jun 14, 2011 11:59 am Post subject: |
|
|
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 |
|
|
pavelbelousov
Joined: 14 Jun 2011 Posts: 3
|
Posted: Tue Jun 14, 2011 12:00 pm Post subject: |
|
|
Thanks a lot |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jun 17, 2011 5:57 am Post subject: |
|
|
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 |
|
|
pavelbelousov
Joined: 14 Jun 2011 Posts: 3
|
Posted: Fri Jun 17, 2011 6:01 am Post subject: |
|
|
Thank you, I'll try beta version on Monday |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jul 06, 2011 4:30 am Post subject: |
|
|
This issue has now been fixed in Version 3.15.2 and 4.1.2 _________________ Infralution Support |
|
Back to top |
|
|
|