Click to See Complete Forum and Search --> : timer message missing


Deepak Patil
May 12th, 1999, 11:52 PM
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

Surinder
May 14th, 1999, 12:02 AM
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

Jason Teagle
May 14th, 1999, 02:05 AM
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.