At 9:35 PM +0200 2002/08/15, Christian Eyrich wrote: >I thought it might be a nice thing to set up a handler for this >situation using SrmSetWakeupHandler() and let the short handler send >myself an event message notifying me to do the main mork.
The serial wakeup handler is called from within the serial receive interrupt service routine, therefore you must follow ISR coding rules (such as avoiding memory allocations, drawing to the screen, waiting on semaphores, etc.). You cannot post generic events from within this handler; only key events via EvtEnqueueKey and calls to EvtWakeup are allowed (the latter will cause your main event loop to run with a null event, whereupon you should check for available data on the serial port). Alternatively, use the notification manager's from-interrupt API to post a notification to yourself. Regards, Jim Schram PalmSource Inc. Partner Engineering -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
