What is really odd is that this is one form of 5, the only one that does that.
I must have trashed some memory somewhere. Bad pointer or something.
I am reorganising my code into a bunch of modules, which will move stuff
around. Maybe the stray pointer will point into somewhere POSE doesn't like...
Derek
On Sat, 29 Jul 2000, you wrote:
> Derek Kite wrote:
> >
> > I have a form, consists of a table, a few buttons, and labels. My code does the
> > normal stuff, ie FrmGotoForm(), then applicationhandleevent assigns the event
> > handler, then I get the frmOpenEvent, which I handle by initializing the table,
> > then calling FrmDrawForm. Identical to other forms init sequence.
> >
> > Now when I click on a button, I should get an event to handle. But I only get
> > nilEvents, no matter where I click. Any idea where to start looking for the
> > problem? I have commented out the table init code, no difference. Very strange.
> >
> > Derek
>
> Sounds like there's something wrong with your event loop. Unless you're doing
> some type of timer, an animation, or some other special case, the timeout for
> EvtGetEvent() should be evtWaitForever. This will make your app wait "forever"
> for a "real" event. Using evtWaitForever, you should never get a nilEvent,
> AFAIK.
>
> If you have the timeout set to anything else, you will get a nilEvent after the
> specified number of ticks. In a normal UI and event driven application, you
> don't want that to happen.
>
> Also, using any other value than evtWaitForever, will drain the unit's battery
> faster then it should.
>
> --
> Brian Mathis
> Direct Edge
> http://www.directedge.com
>
> --
> 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/