I attached one delegate to Dispatcher timer Tick event which runs in every 500 ms its Working fine on my computer but when I run same application on another computer it's start for first time but never gets a hit on tick event again. it's just running for one time only. I want know is it possible if I have some exception in my delegate can it cause timer to misbehave? How can I solve this problem?
This Timer runs throughout the lifecyle of application and stop only when application is stoped.
tmr = new DispatcherTimer();
tmr.Interval = TimeSpan.FromMilliseconds(500);
tmr.Tick += delegate
{
FaceRecognizer_Advanced.GetInstance.GetFacesFromImage();
};
tmr.Start();
I expect this timer should get hit the way it suppose to be.