This is a migrated thread and some comments may be shown as answers.

Memory leak ?

1 Answer 84 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Jean Ressouche
Top achievements
Rank 1
Jean Ressouche asked on 22 Aug 2011, 01:51 PM
Dear Telerik team,

i have a memory leak issue when using the RadTransitionControl with version 2011.1.419.1040.

Here is the XAML, used into a empty usercontrol:

<Grid x:Name="LayoutRoot">
        <telerik:RadTransitionControl x:Name="LblEffect">
 
    <telerik:RadTransitionControl.Transition>
              <telerik:RollTransition />
    </telerik:RadTransitionControl.Transition>
 
    <telerik:RadTransitionControl.ContentTemplate>
           <DataTemplate>
                  <TextBlock HorizontalAlignment="Stretch" Foreground="White" Margin="5" Name="lbl_status" Text="{Binding Content, ElementName=LblEffect}" VerticalAlignment="Center">
                       <TextBlock.Effect>
                            <DropShadowEffect Direction="0" ShadowDepth="1" BlurRadius="4"/>
                       </TextBlock.Effect>
                  </TextBlock>
           </DataTemplate>
     </telerik:RadTransitionControl.ContentTemplate>
 
      </telerik:RadTransitionControl>
       
    </Grid>

 In my .cs code, i have a DispatcherTimer, with this code :

public void SwitchTick(object o, EventArgs sender)
{
    if (DataContext != null)
    {
        LblEffect.Content = null;
        LblEffect.Content = ((ItemsClass) DataContext).Status; // (Status = simple String value)
    {
}


Do you think that my way is incorrect ? (to change the RadTransitionControl.content directly in the code etc..) 

  • The leak is really important (1Mo/s under normal usage, with 15 instances of this usercontrol on screen)
  • If i remove the RadTransitionControl, i don't leak at all
  • I want to keep the cool effects :D

Thanks in advance !

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 25 Aug 2011, 03:23 PM
Hi Jean,

 We are not aware of memory leaks in the Docking control. Unfortunately I couldn't understand from the code you sent how do you test for memory leaks. Could you please share with us what makes you suspect that there is a memory leak related to this control and how do you test for memory leaks? If you could send us a sample project that reproduces the problem and some steps that will let us observe the problem this would help us investigate the problem and help you resolve it.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
TransitionControl
Asked by
Jean Ressouche
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or