This is what I use in my wakeup handler, it works for me:
(posted feb 21 2001 found on www.escribe.com search for "wakeup")
http://www.escribe.com/computing/pcpqa/m35383.html
> -----Original Message-----
> From: Jim Garozzo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 19, 2001 9:27 AM
> To: Palm Developer Forum
> Subject: EvtWaitForever - Generating an Event
>
>
> I give up!!
>
> I'm trying to use the new SrmWakeUpHandler but there is a
> slight problem.
>
> EvtWaitForever
>
> I want to generate an event to make the EvtGetEvent(&event,
> evtWaitForever);
> stop waiting forever.
>
> Anybody know how I can just generate an event that will be set in an
> interrupt?
>
> I've looked at EvtWakeup but it didn't help me.
>
> I tried creating an event:
>
> MemSet(&newEvent, sizeof(EventType), 0);
> newEvent.eType = nilEvent;
> EvtAddEventToQueue(&newEvent);
>
> But, it didn't help...
>
> Suggestions, comments, etc...i've search the archive and couldn't find
> anything that talked about the bypass of evtWaitForever
> except adding a
> variable that can be modified...and I don't want to do that.
> I know i can
> but that is going to defeat the purpose of using the Interrupt.
>
> Thanks!
>
> Jim
>
> --
> **************************************************************
> James P. Garozzo - Connectivity Engineer
> White-Rodgers - Affton, MO
> Phone: 314.577.5201 Fax: 314.577.5248
> E-mail: [EMAIL PROTECTED]
> **************************************************************
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/