Jeudi 17 Mai 2001 02:50, Steve Mann a �crit:

>>What can EvtGetEvent be doing during so much time and how can I avoid it ?
>
> Maybe EvtGetEvent isn't the culprit. It could possibly be something
> like garbage collection. Are you using a lot of dynamic memory, or
> creating new chunks a lot, or anything like that?

Unfortunately, no : all the memory allocation and handles locking stuff is 
done once, at the beginning of the application.

I said that it could be related to the Pen/Stylus because when I don't use 
it, the problem seems to never occur.
And I remember having read in the documentation, that dragging with the 
stylus use a lot of CPU time, as the device goes into "doze mode" and an 
interrupt is called very often ( 20 ms ).

I thought that maybe the freeze I'm having was due to something related...

As I just need the coordinates of the stylus and the fact it is up or down, 
there is maybe a way to get these informations while avoiding the device to 
go into this "doze mode", but I didn't find it yet :(

Thanks for your help !

-- 
Daniel Morais


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

Reply via email to