关于iNet控件的icExecuting错误,大家来帮忙看看~~

cloud_soft 2004-08-04 04:27:38
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无法正常下载文件。。
请问各位大虾谁遇到过这种情况?该如何解决啊?
...全文
97 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rainstormmaster 2004-08-05
  • 打赏
  • 举报
回复
//我进行了错误捕获,但是这次文件的下载就失败了,继续下载其他的文件是正常的

你研究一下断点续传技术,或者干脆直接在捕获错误之后,重新下载
cloud_soft 2004-08-05
  • 打赏
  • 举报
回复
to: rainstormmaster(暴风雨 v2.0)
我进行了错误捕获,但是这次文件的下载就失败了,继续下载其他的文件是正常的
rainstormmaster 2004-08-04
  • 打赏
  • 举报
回复
用错误陷阱捕获错误并处理

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧