vb中用Winsock扫描端口
Public Sub TimeOut(Duration As Double)
' standard timeout sub, causes a short pause in the code
Dim StartTime As Double, x As Integer
StartTime = Timer
Do While Timer - StartTime < Duration
x = DoEvents()
Loop
End Sub
提示实时错误28堆栈空间溢出错误代码x = DoEvents()请问如何改