关于iNet控件的icExecuting错误,大家来帮忙看看~~
statechanged事件代码基本如下(msdn的例子):
Private Sub Inet1_StateChanged(ByVal State As Integer)
' Retrieve server response using the GetChunk
' method when State = 12. This example assumes the
' data is text.
Select Case State
' ... Other cases not shown.
Case icResponseReceived ' 12
Dim vtData As Variant ' Data variable.
Dim strData As String: strData = ""
Dim bDone As Boolean: bDone = False
' Get first chunk.
vtData = Inet1.GetChunk(1024, icString)
DoEvents
Do While Not bDone
strData = strData & vtData
DoEvents
' Get next chunk.
vtData = Inet1.GetChunk(1024, icString)
If Len(vtData) = 0 Then
bDone = True
End If
Loop
End Select
End Sub
现在出现这样的一个现象:
程序运行,连接ftp后画面显示,然后用alt+tab反复切换,ap反复失去获得焦点
有的时候vb就会提示出现异常:
icExecuting 35764 "Still executing last request"
然后ftp无法正常下载文件。。
请问各位大虾谁遇到过这种情况?该如何解决啊?