[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

timer controls more than one

Hi,

I have no idea if I use 4 timer controls in my windows mobile application or windows CE.  Can I use more timer controls in my application or I should use variable (integer) to store counter with one timer? I need to know will it effect my application by performance? Will all timer can inter cross ?

0
mkk39
Asked:
mkk39
  • 6
  • 4
  • 2
  • +1
2 Solutions
 
MarcjevCommented:
4 timers is no problem. Timers give some overhead. So starting much of them will use cpu and fill up the messagepump. If you were talking about dozens this might be a problem, if the interval is very small.
0
 
mkk39Author Commented:
Thanks for reply.

The application is for windows mobiles or windows ce. I have to use 4 timers with with more than 10 minutes of duration.

Can u please confirm now?
0
 
MarcjevCommented:
Yep this will work. No problem there.
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
vivekpv10Commented:
Using timers is not an issue.But remember that timers will not work in suspended mode.Usualyl by default after 3 minutes mobile will be in suspended mode.If you want run a scheduled task then use CeRunAppAtTime function.Or otherwise change registry settings that it will never go to suspended mode.
0
 
vivekpv10Commented:
Also there are two timers.One is windows timer and other one is Therad timer.Thread timer will work asynchronously..
0
 
mkk39Author Commented:
Can u please help me how can I use CeRunAppAtTime function

and

how to implement thread timer

Thank you
0
 
vivekpv10Commented:
Thread timer also will not work in suspended mode....CeRunAppAtTime is the only solution to overcome this...i will give u a link.....Download that project..by refering that u will get an idea about CeRunAppAtTime....
http://www.j2i.net/images/NotificationTest.zip
0
 
vivekpv10Commented:
are u clear about this??
0
 
mkk39Author Commented:
thanks vivekpv10

I will try it in next few hours
0
 
vivekpv10Commented:
which version of windows mobile that u using???
0
 
mkk39Author Commented:
windows mobile 5 and WM 6
0
 
vivekpv10Commented:
ok..have u tried tht CeRunAppAtTime??
0
 
hjgodeCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 6
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now