dim sStr as string=","trydim dt as datatable =getData(1)If dt.Rows.Count > 0 Then Dim drRows() As DataRow = dt.Select("F1 like 'BCX/%' ") If drRows.Length > 0 Then Dim i As Integer For i = 0 To drRows.Length - 1 sStr += DBNULL2Str(drRows(i).Item("F1") + "," Next End IfEnd IfCatch ex As Exception log(ex) end Try以上运行时,偶尔会出现log “System.NullReferenceException: 未将对象引用设置到对象的实例”错误 代码竟然是这行: sStr += DBNULL2Str(drRows(i).Item("F1") + ","由于调试正常,批量客户运行时,会这样,无法调试。请问有什么可能?
- 2 回答
- 0 关注
- 565 浏览
添加回答
举报
0/150
提交
取消