Memory leak when InputMode was set

2 posts, 0 answers
  1. Test
    Test avatar
    1 posts
    Member since:
    Jan 2018

    Posted 10 Jan Link to this post

    Hi

    I need to dynamically create and delete RadDateTimePicker object. However, I can not fully delete the RadDateTimePicker. This can cause a memory leak. Let me give the sample example to illustrate my problem.

    for(int b=0;b<10000;b++){

      for(int a=0;a<100;a++){
        RadDateTimePicker radDateTimePicker = new RadDateTimePicker();
        radDateTimePicker.InputMode = InputMode.DatePicker;
        radDateTimePicker = null;
      }
      long memory = GC.GetTotalMemory(true);
      System.Diagnostics.Trace.WriteLine(xxx.ToString() + " - " + (memory / 1000).ToString() + "K");
    }

    I found that If I set the InputMode the memory will keep increasing (Memory leak).  Otherwise, the memory will not keep increasing. Could you please help to solve this problem. 

     

    Thank you very much

  2. Imer
    Admin
    Imer avatar
    22 posts

    Posted 10 Jan Link to this post

    Hello,

    Dear Test, 

    May I please know if you are currently using a trial or happen to have a license with active support in another account?
    I was not able to see the tools from where the question is raised under starsunmoongod@gmail.com.

    Please do keep me updated so that I may give the support team as much information as possible in case that they may need it. 

    I await your response!

    Thank you and may you have a great day!


    Regards,
    Imer
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top