Solved

timer controls more than one

Posted on 2010-08-15
14
212 Views
Last Modified: 2013-12-27
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
Comment
Question by:mkk39
  • 6
  • 4
  • 2
  • +1
14 Comments
 
LVL 10

Expert Comment

by:Marcjev
ID: 33441617
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
 

Author Comment

by:mkk39
ID: 33441709
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
 
LVL 10

Expert Comment

by:Marcjev
ID: 33443789
Yep this will work. No problem there.
0
 
LVL 5

Accepted Solution

by:
vivekpv10 earned 500 total points
ID: 33451769
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
 
LVL 5

Expert Comment

by:vivekpv10
ID: 33451859
Also there are two timers.One is windows timer and other one is Therad timer.Thread timer will work asynchronously..
0
 

Author Comment

by:mkk39
ID: 33452455
Can u please help me how can I use CeRunAppAtTime function

and

how to implement thread timer

Thank you
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 5

Assisted Solution

by:vivekpv10
vivekpv10 earned 500 total points
ID: 33452728
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
 
LVL 5

Expert Comment

by:vivekpv10
ID: 33462063
are u clear about this??
0
 

Author Comment

by:mkk39
ID: 33462150
thanks vivekpv10

I will try it in next few hours
0
 
LVL 5

Expert Comment

by:vivekpv10
ID: 33463276
which version of windows mobile that u using???
0
 

Author Comment

by:mkk39
ID: 33579763
windows mobile 5 and WM 6
0
 
LVL 5

Expert Comment

by:vivekpv10
ID: 33584072
ok..have u tried tht CeRunAppAtTime??
0
 
LVL 16

Expert Comment

by:hjgode
ID: 39626888
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now