Posted 16 years ago
by Simone Grignola
Version: 4.5.0485
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
Hello,
I'm handling some memory leaks in our application and I've found a strange leak when we use your styles.
The first is a basedon style of this type:
<Style TargetType="TextBox" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.TextBoxKey}}">
<Setter Property="AutoWordSelection" Value="True"/>
</Style>
At this time when we put a textbox in a usercontrol the control is never released because the contextstorage of the textbox keeps a reference to _parent._parent (checked with a memory profiler).
Can you send me the style to see where is the problem?
The second memory leak affects the AnimatedProgressBar, everything works fine but when we set the theme using Theme="AeroNormalColor" there is leak similar to the one of the textbox and the whole usercontrol leaks.
Can you help us to find the problem?
Thank you very much
Simone Grignola
I'm handling some memory leaks in our application and I've found a strange leak when we use your styles.
The first is a basedon style of this type:
<Style TargetType="TextBox" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.TextBoxKey}}">
<Setter Property="AutoWordSelection" Value="True"/>
</Style>
At this time when we put a textbox in a usercontrol the control is never released because the contextstorage of the textbox keeps a reference to _parent._parent (checked with a memory profiler).
Can you send me the style to see where is the problem?
The second memory leak affects the AnimatedProgressBar, everything works fine but when we set the theme using Theme="AeroNormalColor" there is leak similar to the one of the textbox and the whole usercontrol leaks.
Can you help us to find the problem?
Thank you very much
Simone Grignola