G
Guest
I posted this on the Windows CE Application Development newsgroup and was
told to post it here:
I'm not sure I understand your suggestions....can you explain further a bit?
Thanks
Samer
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Check out my blog at:
samersaghir.blogspot.com
told to post it here:
Hey,
I'm trying to get a peice of code to run repeatedly every X seconds and the whole
thing shouldn't run for more than Y seconds.
I tried using System.Threading.Timer and the period does the repeating forme
but I have two problems:
1 - The period has nothing to do with whether the code has finished executing or
not. So if the code requires 2 seconds to run and I specified a 1 sec repeat period
it would run every second and not a second after the one before finished
exceuting. (I've done some research and it seems that in regular .NET this can be
solved by joining threads anything similar or workaround for .NETCF??)
2 - I have to have a seperate thread running to moniter the overall time, can I
avoid that?
Thanks for the help
Samer
I'm not sure I understand your suggestions....can you explain further a bit?
Thanks
Samer
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Check out my blog at:
samersaghir.blogspot.com