[Interest] QTimer stops triggering

Vannoote, Frederik frederik.vannoote at barco.com
Mon Jun 4 16:06:47 CEST 2012


Hi Syam,

 

 

 

The Qtimer object is only created once and lives on for ever.

It has an interval of 30 seconds.

 

Most of the times they stop triggering after 1 or 2 days.

 

 

 

 

Kind regards,

Frederik

 

Frederik Vannoote

Sr. Development Engineer Software

 

Barco nv

Pres.Kennedypark 35

B-8500 Kortrijk (Belgium)

 

________________________________

From: interest-bounces+frederik.vannoote=barco.com at qt-project.org
[mailto:interest-bounces+frederik.vannoote=barco.com at qt-project.org] On
Behalf Of Syam Krishnan
Sent: 04jun12 16:04
To: interest at qt-project.org
Subject: Re: [Interest] QTimer stops triggering

 

On 06/04/2012 12:34 PM, Vannoote, Frederik wrote: 

Hey all,

 

 

 

I'm having a weird thing about Qtimer which I can't explain until now.

We are using a dedicated application to kick the processor watchdog.
This application is based on a QTimer. Basically, it only has to call an
ioctl once every 30 seconds. This is the only thing the application
does.

 

We see that after a random time, the QTimer stops triggering. We have
proven that it does not get stuck somewhere, it just does not get
scheduled any more.

I've replaced the code with a while loop instead of the QT event loop.
That seems to be running fine.


Do you mean to say that you have set the QTimer to have a time-out of 30
seconds?
And what is the order of time after which the timer seems to stop
working - minutes, hours?

Also, (a wild shot) are you by any chance creating the timer objects
afresh everytime?

Syam



DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120604/5d08f45f/attachment.html>


More information about the Interest mailing list