none
Timer Contorl RRS feed

  • Question

  • I am just display time in my application on tick event of timer.

    but some time my application hanged due to timer, what to do? any buddy help me?

    Wednesday, May 8, 2013 3:37 PM

Answers

All replies

  • Draw when the tick occurs.  Invalidation is not enough.  Particularly if you want it to occur when you are dragging the window.

    You should share more details if you want more help.  Like show the code that you used to "display time".  And show the setup and handler for your timer.

    And also describe the "hang".  I don't believe it's possible to hang the application due to a timer, but you might inadvertently suspend drawing or handling of the tick events depending on what code you wrote.

    Wednesday, May 8, 2013 3:50 PM
  • Agreed, we need code before we can even start to begin to guess what went wrong.

    Also, please specify wich of the 3+ Timer Classes you used:

    http://msdn.microsoft.com/en-us/magazine/cc164015.aspx


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2

    Wednesday, May 8, 2013 4:13 PM