Losing Timer Events

Losing Timer Events

When I start a timer on a window with an interval of one second, I expect to get a timer event on the window every second. I have noticed that if you have a command button on the window that opens another sheet, certain timer events are lost forever. While the sheet is being opened, the timer event is not received until the processor is busy opening the window. I therefore end up losing three to four timer events (or 3-4 seconds).

Though I lose these timer events I was expecting to get timer events that I had lost in immediate succession as it happens with the system clock. But what happens is different. The timer events, after whatever lost time, start coming again at intervals of 1 second, without adjusting for the number of seconds it had lost.

This gets down to the Windows operating system. If your process (the window with the timer) is not processing the events quickly enough, Windows will not let the queue of events waiting on the timer event build up, so it will start to discard the timer events.

You will have to design/code your application to account for these lost seconds.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes