dispatchertimer

DispatcherTimer eating up CPU over time causing WPF visual not rendering properly

I have a WPF app that uses DispatcherTimer to update a clock tick. However, after my application has been running for approx 6 hours the clocks hands angles no longer change. I have verified that the DispatcherTimer is still firing with Debug and that the angle values are still updating, however the screen render does not reflect the ch...

Using dispatchertimer in combination with an asynchroneous call

Hi. We have an issue in our Silverlight application which uses WCF and Entity Framework, where we need to trap the event whenever a user shuts down the application by closing the web page or the browser instead of closing the silverlight application. This is in order to verify if any changes have been made, in which case we would ask th...

DispatcherTimer and high CPU load

Hey, I have an WPF application and using DispatcherTimer to fire an event every minute. I run my app and the cpu load jumps to 100%. I tried to compile an app without using a timer and cpu load was very low as I it expected to be. Sample code: DispatcherTimer MainTimer = new DispatcherTimer(); MainTimer.Tick += new EventHandler(Core.Ti...

WPF control retained in memory due to DispatcherTimer EventHandler

Yo One of my WPF control is retained in memory due to one of its private member. The incriminate member is a DispatcherTimer and the retention is because of the Tick event handler. (This leak was detected with help of the tool ANTS Memory Profiler) Obviously, I set/remove the handler on load/unload. And the control is unloaded... voi...