At 3:02 PM +0100 4/4/01, Toby Boreham wrote:
>>>On Palm OS 3.3 this hangs up the system. Does anyone have any ideas?
>>
>>SysTaskDelay(time * ticksPerTenth);
>>
>>is the problem. SysTaskDelay wants a number of ticks. Why do you multiple it by 
>time, and what value is time set to?
>>
>>Also, if you want 10 ms, I think you want
>>
>>ticksPerSec = SysTicksPerSecond();
>>ticksPerTenth = ticksPerSec / 100;
>
>The problem is with the system totally locking up after SysTaskDelay is called inside 
>a trap on OS 3.3, I guess this is because it's a blocking operation... I think...

No, that's definitely not the problem.

Does the device lock up if you take out the call to SysTaskDelay and replace it with a 
simple for-loop? What else are you doing in your trap patch? From your original post, 
I assume you're only patching KeyWake... you do realize that this function is 
sometimes called from within an interrupt service routine, and therefore it cannot 
allocate memory, perform database operations, use the feature manager, etc.?

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


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