更新时间:2023-02-08 16:34:12
谁知道?你不 - 我们不 - 而且我们都没有人知道,因为你丢失了关于错误原因的任何和所有信息。
当你使用一个空的Catch
块时,你说我不在乎错误是什么,让我们忽略它并继续。
添加一些代码 - 至少:
Who knows? You don''t - and we don''t - and none of us can find out, because you are throwing away any and all information on the cause of the error.
When you use an emptyCatch
block, you are saying "I don''t care what the error is, let''s ignore it and continue".
Add some code - at a bare minimum:
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
这将让您开始找到问题所引起的问题!
Which will give you a start of finding what the problem is caused by!