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

RadDesktopAlert did not release memory when close

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

Hello

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);
            alert.Show();

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

Thank you!

 

1 Answer, 1 is accepted

Sort by
0
Hristo
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.

Regards,
Hristo Merdjanov
Telerik
 

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

 
Tags
DesktopAlert
Asked by
Sam
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or