Re: Sleep() issue
- From: "Senen" <senen@xxxxxxxxxx>
- Date: Fri, 20 Apr 2007 23:12:35 +0200
The application is a console application (VisualC/C++)
It's started by opening a DOS cmd window with the command start.
Senen
"Sean Liming (eMVP)" <sean_liming@xxxxxxxxxxxx> a écrit dans le message de
news: OZHDNk4gHHA.4704@xxxxxxxxxxxxxxxxxxxxxxx
I thought there was a WaitForService, but I guess they are the same thing.
Same time is a bit puzzling.
Is this application the shell for the system? If so are you setting the
SetShellReadyEvent?
Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
"Senen" <senen@xxxxxxxxxx> wrote in message
news:4628ff3e$0$27381$ba4acef3@xxxxxxxxxxxxxxxxx
If I understand correctly, you mean any WaitForSingleObject() with a
timeout
of 2ms, but again the same behavior.
Regards
Senen
"Sean Liming (eMVP)" <sean_liming@xxxxxxxxxxxx> a écrit dans le message
de news: eiiRQz1gHHA.588@xxxxxxxxxxxxxxxxxxxxxxx
Instead of sleep is it possible to do a wait on service, which is a bit
more accurate?
Regards,
Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
"Senen" <senen@xxxxxxxxxx> wrote in message
news:4628a093$0$5095$ba4acef3@xxxxxxxxxxxxxxxxx
Hi,
In my program I need to wait for a device for about 2ms. The accuracy
of the wait is not critical.
It works under Windos XP with a simple Sleep(2).
Under XPE the same program will wait for 15ms instead of 2ms.
Any value for Sleep() lower than 15ms will produce the same wait of
15ms.
The use of SetWaitableTimer produces the same effect.
How can I get a delai of few milliseconds in XPE?
Thanks
Senen
.
- References:
- Sleep() issue
- From: Senen
- Re: Sleep() issue
- From: Sean Liming \(eMVP\)
- Re: Sleep() issue
- From: Senen
- Re: Sleep() issue
- From: Sean Liming \(eMVP\)
- Sleep() issue
- Prev by Date: Re: Oveflow Error while building an image, Code = 0x800a0006
- Next by Date: Re: Sleep() issue
- Previous by thread: Re: Sleep() issue
- Next by thread: Re: Sleep() issue
- Index(es):
Relevant Pages
|
|