I guess you use dynamic allocation for storing those timetick values. If so, set a static flag under those events that access to that memory. Check this flag to know if that memory is valid to use or not.
----- Original Message ----- From: "D. Kirker" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Saturday, December 13, 2003 7:00 PM Subject: Re: time between events > I have tried that but I got an error when I tried to clear the variable or > when I closed the app. I will try it again. > > Thanks, > Donald > > "Robert Moynihan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Vu Pham wrote: > > > > >How about using TimGetTicks() at each of those events ? > > > > > > > > > > > Right,... like set a global variable (UInt32 gPendownTick) when the > > PenDownEvent is detected, and then do the math when the PenUpEvent > > happens: elapsedTime = TimGetTicks()-gPenDownTick. > > > > Bob. > > > > > > > > -- > 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/
