[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

timer controls more than one

Posted on 2010-08-15
14
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 5

Accepted Solution

by:
vivekpv10 earned 2000 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
 
LVL 5

Assisted Solution

by:vivekpv10
vivekpv10 earned 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

650 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