Re: do pop up boxes stop all events?
- From: "Jim Mack" <jmack@xxxxxxxxxxxxxxx>
- Date: Wed, 19 Sep 2007 11:00:22 -0400
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
.
- Follow-Ups:
- Re: do pop up boxes stop all events?
- From: dpb
- Re: do pop up boxes stop all events?
- References:
- VB5: do pop up boxes stop all events?
- From: tadamsmar@xxxxxxxxx
- Re: do pop up boxes stop all events?
- From: Mike Williams
- Re: do pop up boxes stop all events?
- From: tadamsmar@xxxxxxxxx
- Re: do pop up boxes stop all events?
- From: Mike Williams
- Re: do pop up boxes stop all events?
- From: tadamsmar@xxxxxxxxx
- Re: do pop up boxes stop all events?
- From: Mike Williams
- Re: do pop up boxes stop all events?
- From: tadamsmar@xxxxxxxxx
- Re: do pop up boxes stop all events?
- From: tadamsmar@xxxxxxxxx
- Re: do pop up boxes stop all events?
- From: dpb
- VB5: do pop up boxes stop all events?
- Prev by Date: Re: Debugging an ActiveX in IDE
- Next by Date: Re: VB Array Structures
- Previous by thread: Re: do pop up boxes stop all events?
- Next by thread: Re: do pop up boxes stop all events?
- Index(es):
Relevant Pages
|
Loading