I am doing some initialization in my app. whenever I get a winEnterEvent.
The first two forms seem to work perfectly, but my third form isn't getting
the winEnterEvent. I'm using FrmGotoForm to switch between forms. In my
event loop, I have:

EvtGetEvent(&event, evtWaitForever);
if (event.eType == winEnterEvent)
        HostTraceOutputTL(appErrorClass, "got winEnterEvent 1");
if (SysHandleEvent(&event))
        continue;
if (event.eType == winEnterEvent)
        HostTraceOutputTL(appErrorClass, "got winEnterEvent 2");

I also put a HostTraceOutputTL statement at the start of the winEnter and
frmOpen handlers for each form. When I look in Palm Reporter, I find this:

got winEnterEvent 1
got winEnterEvent 2
Form1: winEnterEvent
Form1: frmOpenEvent
got winEnterEvent 1
got winEnterEvent 2
Form2: winEnterEvent
Form2: frmOpenEvent
got winEnterEvent 1
Form3: frmOpenEvent

For some reason, Form3 is never getting the winEnterEvent, which means that
SysHandleEvent must be returning true. I looked at the sources for OS 4
(latest available), and SysHandleEvent calls PrvHandleEvent, which doesn't
do any special handling for winEnterEvent, so it should always return false.
Note that this ONLY seems to happen in the Tungsten T3 simulator. Did
something change in 5.2.1? Or is this a bug in the simulator? I can change
my code to:

if (event.eType != winEnterEvent)
        if (SysHandleEvent(&event)) continue;

but I don't want to unless I'm sure it won't cause a problem. Anybody have
any insight as to what's going on? Thanks.

Tom


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

Reply via email to