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

RadDesktopAlert did not release memory when close

1 Answer 128 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Sam asked on 04 May 2015, 02:23 PM


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!


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 07 May 2015, 01:27 PM
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.

Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question