OK. I still think he should put a FIXME remark in the test-case, and document why Sleep() is needed. Someone might fix the driver someday.
The only reason i yelled "alert!", is that i have seen so much bad code which has come to a state where the are Sleep(143) here and Sleep(1332) there, where nobody can remember why they are there and what the Sleep count represents (most of the time no-one ever knew! :-)). In the mean time, the real bugs just getter harder to find, as they are covered by all the messy Sleeps(). I see allot of this kind of yap in telecom embedded software (mobile phones etc.).
In this case Maarten probably knows what he is doing (he usually does). But thanks for the follow up!
And now i will go to Sleep().
Thanks,
/p
On Wed, 2008-02-13 at 11:28 +0100, Stefan Dösinger wrote: