Is this from Windows or something?  In unix it's sleep, not Sleep, and it only takes ints or something similar.

I have a native (OpenBSD) usleep so I ifdefed:

#ifdef _WIN32
#define usleep(x) Sleep(x/1000)
#endif

It didn't affect my problem but it made me feel better.

  Alan
 
-----
Radio Astronomy - the ultimate DX