RadDesktopAlert did not release memory when close

2 posts, 0 answers
  1. Sam
    Sam avatar
    27 posts
    Member since:
    Sep 2013

    Posted 04 May 2015 Link to this post


    I may coded it incorrect way.  When I clicked the (X) button to close, it does not release memory.  I can see through Windows Task Manager.


    RadDesktopAlert alert = new RadDesktopAlert();
                alert.FixedSize = new Size(330, 110);
                alert.PopupAnimation = true;
                alert.PopupAnimationFrames = 50; // 50 is default
                alert.ShowOptionsButton = false;
                alert.CaptionText = "NEW POPUP";
                alert.ContentText = "WELCOME";
                alert.AutoClose = Properties.Settings.Default.allowAutoClose;
                alert.AutoCloseDelay = Properties.Settings.Default.delayAutoCloseInSec; ;
                alert.Popup.Click += new EventHandler(Popup_Click);

    Can someone please help me how to release/dispose RadDesktopAlert's memory properly?

    Thank you!


  2. Hristo
    Hristo avatar
    1522 posts

    Posted 07 May 2015 Link to this post

    Hi Sam,

    Thank you for writing.

    I tested your code with a memory profiler tool (JustTrace) and there is no indication of a memory leak which means that it will be eventually disposed by the garbage collector. This process is best managed by the .NET Framework. If you like you can force a garbage collection but please have in mind the non-deterministic behavior of the Garbage Collector. Our objects are mostly from Generation 3, which means that they will be disposed at a later state (more about garbage collection). 

    I hope this information was useful. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top