Here is the problem I am having in a bit more detail:

I perform a processor / serial port intensive task for
about 20 minutes.  After this task is completed, the
function I use for delaying code breaks.

The device does not appear to go to sleep and I call
the function to delay the sleep timer.

I am assuming that the function TimGetTicks breaks
after this 20 minute process.

Interestingly enough, this problem occurs only on the
actual handheld units and not the emulator.  I have
tried it on both the Palm M500 and M130.

Any ideas?

-Joshua

I will probably switch to SysTaskDealy at some point,
although I don't really need to delay all that much.  



--- Jan Slodicka <[EMAIL PROTECTED]> wrote:

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



        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
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