-
- Downloads
surround backgroundworker calculation with try/catch block and show dialog in case of an error
... | ... | @@ -257,6 +257,7 @@ Public Class Form1 |
End If | ||
'Calc mode 1 = only precalculation | ||
Try | ||
If CalcMode = 1 Then | ||
JobPrecalc.Run() | ||
Else | ||
... | ... | @@ -270,10 +271,14 @@ Public Class Form1 |
newline & | ||
newline & | ||
"Nevertheless, causes for warnings shall be analyzed together with the Technical Service or Type Approval Authority.", | ||
MsgBoxStyle.Information, MsgBoxStyle.OkOnly) | ||
MsgBoxStyle.Information or MsgBoxStyle.OkOnly, "Error") | ||
|
||
End If | ||
End If | ||
Catch ex As Exception | ||
MsgBox("Error during data evaluation!" & Environment.NewLine & Environment.NewLine & ex.Message, MsgBoxStyle.Critical or MsgBoxStyle.OkOnly, "Error") | ||
'ShowMsgDirect(ex.Message, tMsgID.Err) | ||
End Try | ||
End Sub | ||
Private Sub BgWorker_ProgressChanged(sender As Object, e As ProgressChangedEventArgs) _ | ||
... | ... |