CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    timer message missing

    Dear developers,
    I am using 5 timers at a time . One of my timer is of 100ms and others
    are of 1 sec. Sometimes my 1 sec timer is getting missed. It is quite frequent which is not acceptable for my programme as it is real time application. I am not using multithreding. Is it possible to prioritise the timer message by some means?

    Thank you.



    Deepak Patil

  2. #2
    Join Date
    May 1999
    Posts
    11

    Re: timer message missing

    The windows timer messages are proceesed by the windows message queue. If one of the timer events (WM_TIMER) is there in the queue, windows will not put the other timer messages even its set duration has elapsed. U can try out with multimedia directX functions.
    surinder

    ICQ #3760 3760

  3. #3
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: timer message missing

    Or, avoid the messages going into the queue by using the callback form of the timer use - these fire immediately, and bypass the message queue.



    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured