This looks like you are going to take up 100% of the processor time while
the device should actually sleep. Use e.g. SysTaskDelay() instead.

Concerning the application behavior I am not able to say anything from your
description.

Regards,
    Jan Slodicka



----- Original Message ----- 
From: "Joshua Masters" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, September 08, 2004 6:06 PM
Subject: Timing problem


> Hello,
>
> I am writing a program to send a large amount of data
> through the serial port.  The process takes about 20
> minutes.
>
> I call the following function when I need a small
> delay in my program:
>
> void pause(int pauseTime){
> UInt32 time;
> time = TimGetTicks();
> do{
> }while(TimGetTicks()-time < pauseTime *
> SysTicksPerSecond());
> }
>
> This works perfectly before the 20 minute serial
> procdure.  Unfortunately, code after this procedure
> executes very quickly and ignores my calls to pause.
> If I restart the application, it misbehaves in the
> exact same manner from the beginning until I reset the
> device.
>
> Does anyone have any ideas as to what may be causing
> this?
>
> The device doesn't appear to be going to sleep. (Which
> would mess up TimGetTicks())
>
> -Joshua
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
>
> -- 
> 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/

Reply via email to