I think some standard UI objects generate nil events, can't remember which
offhand (most likely all of them). I've been writing apps under the
impression that anything may generate a nil event (looking at variables and
control states instead of acting on every nil event).
D
-----Original Message-----
From: Paul Dugas <[EMAIL PROTECTED]>
To: Palm List <[EMAIL PROTECTED]>
Date: Monday, April 19, 1999 4:22 PM
Subject: Spurious nilevent?
>Hum... For some reason, I'm getting a nilevent delivered to one of my
forms
>event handlers. I'm doing a bit of timing based on a global storing the
>time of the next event and passing a timeout to the EvtGetEvent() call.
>Turns out that if I turn off my timing stuff (by always passing
>evtWaitForever), I'm still getting a nil event to this form. It appears to
>happen when I press a PushButton. Is this supposed to happen? Why is it
>delivering the nilevent?
>
>I got around it but it took a while. I assumed it was my timing stuff
>craping out.
>
>-Paul
>___________________________________________________________________________
_
>Paul A. Dugas OnSite: voice 404.635.8026 fax
404.635.8001
>Computer & Systems Engineer Office: voice 770.926.1270 fax
770.926.4737
>Contractor for the Ga. DOT Email: mailto:[EMAIL PROTECTED]
>http://georgia-navigator.com/ Web: http://pauld.dugas.com/
>
>
>