Menu

CPeriodicRunner question

Help
2009-08-28
2013-04-19
  • Jacques Samoun

    Jacques Samoun - 2009-08-28

    Hi,

    the following code in void CPeriodicRunner::DoTick()
        iTicksLeft--;
        if(iTicksLeft==0)
        {
            delete iPeriodic;
        }

    basically means that, as TicksLeft is equal to 1 at startup, the periodic timer event is occuring only once. Is that correct ? What i don't get is, why was this mechanism aimed at ?

    regards,
    Jacques.

     
    • Leonardo Risuleo

      Hi Jacques!

      can't remembre why I added it! not sure, but I guess it was related to some performance issues related to symbian 1st edition. feel free to improve the code wherever you want! :)

      ps. do you know how to enable mail notification to this forums?

      -Leo

       
      • Jacques Samoun

        Jacques Samoun - 2009-09-01

        Thanks for the answer. as a matter of fact, it runs correctly on my mobile, I was just curious.
        To enable email notif, i think you have to "monitor this forum" by clicking on top of the dialog.

        thnx,
        jacques.

         

Log in to post a comment.