Okay, so I realized it was all single threaded, which confuses me as to why
I get the error:
"Event Queue Full".  It implies to me that while I was doing some things to
my form (in this
case, updating the contents of 14 fields in one pass) I somehow got a whole
bunch of events
stacked up that weren't getting serviced as a result of the nilEvent.  But,
from the fact that it
is all single threaded, I shouldn't see those nilEvents get generated while
I am handling something
in my form, right?

What gives?

John


Yes, you are correct.  Think single thread.
Each instruction is executed one after another.

Hence why for long operations, they recommend giving some kind of visual
indication
that the app is busy, and can't update the form, handle buttons, and
whatever.

-----Original Message-----
From: John J. Corelli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 8:10 AM
To: Palm Developer Forum
Subject: question about event timing


This is related to my earlier post.

If the timeout of the event loop is set to some positive value, I understand
that if the timeout is reached, you will get a nilEvent.

        do {
             EvtGetEvent(&event, 100);  // after 100 ticks, you'll get a nilEvent in
the event structure
             if(!SysHandleEvent())
                etc.
        } while (event.eType != appStopEvent)

Now, while one of my form handle event callback functions is doing something
within one of the case statements:

static Boolean MyFormHandleEvent(EventPtr event)
{
  Boolean handled = FALSE;

  // ... open form, display form and any other init stuff here

   if (event->eType == ctlSelectEvent)
   {
        switch(event->data.ctlSelect.controlID)
        {
                case MyFormControlButton:
                // Do stuff here - whatever it is you want
                        handled = true;
                        break;

                // other control case statements here...
        }
  return (handled);
}

Doesn't that hold off the 'nilEvents' getting generating (because while I am
in my callback function, I am not getting anymore events)??

John


--
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/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to