[Interest] QTimer stops triggering

Pritam pritam_ghanghas at infosys.com
Mon Jun 4 16:19:17 CEST 2012


On Monday 04 June 2012 07:36 PM, Vannoote, Frederik wrote:
>
> 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.
>
I dont know what timer API is used by Qt. If its posix timers 
underneath, Can you try a simple app with posix timers and see if they 
also misbehave.
That way, we will know whether its a platform problem or qt problem.
>
> 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.
>


-- 
Regards,
Pritam


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120604/a8fc4549/attachment.html>


More information about the Interest mailing list