Search the web
Sign In
New User? Sign Up
palm-dev-forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: Pose and netlib   Message List  
Reply | Forward Message #68854 of 92429 |
What? No one found the problem? So much for peer code reviews.... :-)

Steve Lemke provided me the hint. The problem is with
"sysTicksPerSecond". This is defined to be 100 when building a Palm
OS ROM, but 1000 when building Windows applications (and 60 when
building Macintosh applications). So there's your factor of 10...

I'm pretty sure I can fix this for Poser 3.5.

-- Keith Rollin
-- Palm OS Emulator engineer


At 2:03 PM -0800 2/18/02, Keith Rollin wrote:
>At 11:11 AM -0500 2/18/02, Matt Hebley wrote:
>>In my code, I set the timeout to 20 seconds which appears to be the
>>case on a real device (I haven't actually set up a scenario that
>>will take forever and timed the timeout). With POSE the same code
>>often times out on the host stack in what I estimate to be 2
>>seconds (definitely way less than 20 seconds), but doesn't seem to
>>do the same using the NetLib stack.
>
>Perhaps there's a problem with the way I convert ticks to
>microseconds? Here's my code:
>
> // Convert ticks to microseconds.
>
> hostTimeout.tv_sec = timeout / sysTicksPerSecond;
> hostTimeout.tv_usec = (timeout % sysTicksPerSecond) *
>(1000000 / sysTicksPerSecond);
> hTp = &hostTimeout;


--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/



Sat Feb 23, 2002 12:18 am

keith.rollin@...
Send Email Send Email

Forward
Message #68854 of 92429 |
Expand Messages Author Sort by Date

What? No one found the problem? So much for peer code reviews.... :-) Steve Lemke provided me the hint. The problem is with "sysTicksPerSecond". This is...
Keith Rollin
keith.rollin@...
Send Email
Feb 23, 2002
12:18 am

... Perhaps the two-second timeout theory comes from AppNetTimeout, which is defined to be two seconds by default. However, that's a NetLib/sockets...
Keith Rollin
keith.rollin@...
Send Email
Feb 23, 2002
1:02 am

... Hey, I thought you were being rhetorical! __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic...
Joe
free_email_account@...
Send Email
Feb 23, 2002
1:58 am

... Thanks for your efforts Keith. I think the two second timeout came from me jumping to conclusions. Since I had in the back of my mind that there was (or...
Matt Hebley
snappersolutions_matt...
Send Email
Feb 23, 2002
4:28 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help