Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 3b30e300 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

surround backgroundworker calculation with try/catch block and show dialog in case of an error

parent 06d2bbc8
Branches
Tags
No related merge requests found
......@@ -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")
  • Was this new argument "Error" added on purpose? (or was it just to keep symmetry with the new line below 279)?

    Maybe an "Info" was more suitable, or else users will place too low confidence on the results, won't they? (see #1 (closed)) Untitled

  • Developer

    agreed, actually I can't remember why/when I added this.

  • Please register or sign in to reply
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) _
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment