?
Solved

timer controls more than one

Posted on 2010-08-15
14
Medium Priority
?
228 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
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

 
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
A short article about problems I had with the new location API and permissions in Marshmallow
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 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