Nicolas, This is essentially the same problem as updating the screen every so often.
Use EvtGetEvent with "nticks" instead of EvtWaitForever as the second parameter. This will cause your event loop to get executed at least once every "nticks". You might get a nil event, you might get something else. Each time through the loop, check and see whether it's time to execute your function. No custom events needed, no SysTaskDelay calls needed, gentler on the battery. ---- Hal Mueller [EMAIL PROTECTED] Mobile Geographics LLC http://www.mobilegeographics.com/ Seattle, Washington (206) 297-9575 MapTap public test now underway! http://www.mobilegeographics.com/maptap/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
