Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sleep Hangs and doesn't Return?

Status
Not open for further replies.

lameid

Programmer
Jan 31, 2001
4,212
US
I have the following module for testing:

Code:
Option Compare Database
Option Explicit

Public Declare Sub Sleep Lib "kernel32" (ByValdwMilliseconds As Long)

Sub Tester()
    Debug.Print Now
    Sleep 500
    Debug.Print Now
End Sub

It hangs and never returns on the line Sleep 500. Any ideas? I can't seem to find any recent posts anywhere and this appears to have just started recently.

I tried changing 500 to one and still had no return from sleep.
 
Public Declare Sub Sleep Lib "kernel32" (ByVal[highlight] [/highlight]dwMilliseconds As Long)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
[blush]
Thanks PHV.

I didn't even think about syntax since it seemed to just quit working. I guess I just have to keep in mind I'm not the only cook in the kitchen in this APP any more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top