> The problem is that the custom event you're adding to the event queue
> <bold>supersedes</bold> the "System" event, so the next time you call
> EvtGetNextEvent() you get the custom event, and NOT the system event.
That explains everything. No more custom events for me.
> To work around this, don't try to use a custom event in the queue as
> your signal that more processing needs to be done. Instead, go ahead
> and use a global flag when there's more work to do. Call
> resumeCalculation in response to a nilEvent--which is your signal that
> there's nothing else to do at that time.
>
>
> Change your EvtGetNextEvent call to instead call EvtGetEvent and pass 0
> as a timeout if the global "moreCalculations" flag is set, and pass -1
> otherwise. That way you get the nilEvent right away when there's
> nothing else pending.
I'll try this tonight. Thanks!
--Eric House
******************************************************************************
* From the desktop of: Eric House, [EMAIL PROTECTED] *
* Check out Crosswords for PalmOS: <http://www.peak.org/~fixin/xwords> *
* "The instructions said 'Win98 or better' -- so I installed Linux" *
******************************************************************************