"Petrus Wrang�" wrote:

> Is there a function I can patch on to that I can be sure gets called at
> regular intervals. I must be REALLY sure!
> I'd prefer a function that gets called every 10ms or so. Something like a
> tick increase function. Is there such a function? Any other way to create
> callback without occupying the OS/executing program?

The PalmOS is a single threaded operating system. One approach I have seen is patching 
EvtGetEvent() since it is the most often
called but then you must make sure that the application in use isn't passing the 
EvtWaitForever parameter either.  You could patch
EvtGetEvent() so that is also ignored and then monitor the TimGetTicks() functions.  
Your timing specification is about the limit of
its resolution.

>
> And please don't tell me to wait in my event loop, that would definitely
> halt other programs!

Then you are screwed! :)

I haven't said this on this developer group so I'll repeat it.

"The only thing worst than a Palm user that expects Pentium speed is a Palm developer 
expecting the compatibility of a Sun
workstation."

With that in mind, whatever your project plans are and you have coded yourself in this 
corner, I seriously suggest you reconsider
your whole project design.

Steve



-- 
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