The GUI relies on NilEvents so don't return true when handling them. Don't trigger your CPU intensive process on every NilEvent for the same reason. Space out how often you perform you CPU intensive operations, allow some NilEvents to pass though periodically without performing your calculations during that time.
----- Original Message ----- From: "Abhishek Tomar, Noida" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Saturday, December 20, 2003 9:27 AM Subject: Nil Event vs GUI control > Hi, > I am doing CPU intensive task on Nil event. But still I am unable to get > control over my GUI buttons. Only when I click the button 3-4 times > successively, I get the corresponding CtlSelectEvent on the button. What > could be the possible reason for not getting control on GUI? > > When I debug my program with no breakpoints, I get better control over my > GUI buttons. Why so? > > I tried calling EvtSetNullEventTick but it does not help. Is there any > other method to get better control on my GUI besides NilEvent ? > > Thanks, > Abhishek > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
