Re: do pop up boxes stop all events?



dpb wrote:

The Timer will fire on a 100 Hz schedule, within the uncertainty of
Windows, but events may become "stacked up" if there is a bunch of
other activity as, say, from a user switching applications or using
a complex UI to update graphics or somesuch while data acq is going
on in the background.

It's a common misconception that Timer events 'stack up'. They don't.
Any Timer event that occurs while a prior event is being serviced is
lost, not deferred. Do as little as possible in the actual Timer event
to avoid lost ones.

While 100 Hz isn't that high, it's still usually better, if events are
critical, to use the Timer event to just set a flag or bump a counter
and exit. Meanwhile a tight loop with DoEvents does the actual work,
clearing the flag or decrementing the counter as it handles the tasks.

--
Jim Mack
MicroDexterity Inc
www.microdexterity.com

.



Relevant Pages

  • Re: Timer module for interpreter
    ... What I'd like to do is have a fall-back timer so that if some ... loop which is running the code. ... Presumably the flag set by the ... module and checked by the main interpreter loop would also have ...
    (comp.sys.acorn.programmer)
  • Re: Show Upload Progress
    ... user know that the upload is not hung and to please continue waiting. ... does the uploaded file come in as part of the POST data? ... Where and when would I initiate the timer? ... the flag prior to the upload actually beginning. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Using a timer/interrupt
    ... >> So my question is how I can use a timer to do what I want. ... >volatile int flag; ... That would have to be a genius compiler, one that knows that SetTimer can't ...
    (microsoft.public.vc.language)
  • Re: [PATCH] Clean up of hrtimer code.
    ... How is this applicable to some additional non posix clocks? ... ABS_TIME flag. ... > timers never get their time set (that being done by being put in the timer ... > the absolute timer test on sourceforge to test for this, and, of ...
    (Linux-Kernel)
  • Re: Synchronizing Timers and ISR
    ... you are not missing anything. ... But if I don't clear the cancel flag in the ... If the timer is successfully canceled ...
    (microsoft.public.development.device.drivers)

Loading