Can you break up your computation into smaller components?  If so, you can
call EvtGetEvent with a timeout.  After it times out, draw the next stage of
the cool multi-stage animated progress indicator that you will be inventing,
and then do the next chunk of your computation.

Heck, this way you can even keep the UI somewhat responsive, if your
application can do without the result of the computation until it is
ready...

-- bob

-----Original Message-----
From: John Ioannidis [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 10, 2000 8:24 AM
To: Palm Developer Forum
Subject: twiddle thumbs in long computations?


I have an application that prompts the user for some action, then spends 
about thirty seconds doing public-key-cryptography operations, and then
responds.  I'd like to have some indication on the screen that the machine
is not dead, like a moving clockface, or a progress bar, or something.  Does
anyone have any sample code, or hints, or whatever, that they can send me?

Thanks,

/ji

PS: This is for a demo, not a commercial application.  

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to