为什么异常处理这么慢
一个管理系统的登陆界面,为了防止数据库服务器关闭,导致登陆的无响应,所以加入try
Try
sqlconn.Open()
sqlad.Fill(sqlds, "enter")
Catch ex As Exception
MsgBox(ex.Message)
Catch ec As SystemException
MsgBox(ec.Message)
Finally
sqlconn.Close()
Dim response
response = MsgBox("please exit")
If response = 1 Then
End
End If
End Try
想问下为什么在数据服务器关闭的时候,要将近半分钟,才end