"James Nicholls" <[EMAIL PROTECTED]> wrote in message
news:45365@palm-dev-forum...
> EvtGetEvent(&event, evtWaitForEver);
>
> if (event.eType == nilEvent && openFormOnNextNilEvent)
> {
> openFormOnNextNilEvent = false;
> // Close your startup screen and open your form
> }
You shouldn't assume that the nilEvent was a result of your call to
EvtSetNullEventTick. Lots of things cause "spurious" nilEvents, so you
should always check if the time you're waiting for has been reached by
calling TimGetTicks.
Also, you can compute the timeout to pass to EvtGetEvent rather than calling
EvtSetNullEventTick. I don't know if there is any reason why this is
preferable, but it's what I've always done.
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/