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/

Reply via email to