LargeIntervalTimer start time

Last post 02-15-2008 13:36 by ctacke. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-15-2008 6:48

    LargeIntervalTimer start time

    Hello,

    Using VB2005, .NET CF2 SP2, SDF2.2, PowerPC2003 device

    I am trying to use the LargeIntervalTimer for a datalogging application, where I want to wake up and take readings at intervals of a few seconds up to several hours. I set the Interval and FirstEventTime properties to the correct interval, and a time some time in the future (say 30s interval, starting on the next minute). Then I enable the timer.

    I sometimes get 1 or 2 events firing immediately, even though the time is before FirstEventTime. I then find that the timer often (but not always) continues at the right interval, but not sychronised to FirstEventTime. What is going on here?

    Am I right that the Tick event runs on a separate thread, so I need to use delegates to update the user interface?

    How do I search these forums for relevant posts? putting LargeIntervalTimer into the search at the top of the page doesn't throw up anything!

    Thanks for any pointers

    John 

     

    Filed under:
  • 02-15-2008 13:36 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,890

    Re: LargeIntervalTimer start time

     Depending on the platform's kernel, notification set for a very short period of time in the future may just fire immediately. The default in the Platform Builder source last I checked (which was way back at CE 3.0) was 11 seconds or less will fire immediately, but this can be changed by the OEM.  My guess is that's what's causing the behavior you're seeing.

    I'm pretty sure the Tick even is on a separate thread - it's will be obvious if you try to affect the UI and get an Exception.

    As for the Search, we're working at getting the index to include the Forums - we were a bit rushed getting these forums turned on, so not everything went smoothly.  Hopefully we'll get the search working in the near future. 

    Filed under:
Page 1 of 1 (2 items)