title: How do we set Timers in WinRT app?
body: <p>I am trying to set Timer in my Windows Store App. </p>
  
  <pre><code>    public void Start_timer()
      {
  
          Windows.UI.Xaml.DispatcherTimer timer = new DispatcherTimer();           
          timer.Tick += new Windows.UI.Xaml.EventHandler(timer_Tick);
          timer.Interval = new TimeSpan(00, 1, 1);
          bool enabled = timer.IsEnabled;              // Enable the timer
          timer.Start();                              // Start the timer      
        }
  </code></pre>
  
  <p>On button click I call above method to set this Timer. But when Eventhandler for Tick is set, I get error
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."    </p>
  
  <p>Do we need to handle Timers differently in Windows Store apps? </p>