|
Albert:
On Thu, 04 October 2001, "York, Albert" wrote:
>
> Can anyone tell me why the program below doesn't work? The program compiles
> and runs but doesn't delay at all.
>
> D delay PR 10I 0 ExtProc('usleep')
> D delayTime 10u 0 value
>
> D PauseTime s 10u 0 inz(30000000)
> D result s 10i 0
> C eval result = delay(PauseTime)
> C return
The usleep() documentation says that's exactly what it should do. I'd check the
value of result to see if it returns a -1 and, if it does, I'd then check errno
to see if it's EINVAL.
Your PauseTime is an invalid value for usleep().
Tom Liotta
--
Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone 253-872-7788
Fax 253-872-7904
http://www.400Security.com
___________________________________________________
The ALL NEW CS2000 from CompuServe
Better! Faster! More Powerful!
250 FREE hours! Sign-on Now!
http://www.compuserve.com/trycsrv/cs2000/webmail/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.