Hallo habe im Internet einen CrashReporter gefunden. github.com/ravibpatel/CrashReporter.NET/tree/master
Leider habe ich das Problem beim einbauen dieses Packets.
Ich hab das Ding mithilfe von Nuget runtergeladen, einen Modul dazu erstellt und den Code aus Beispiel in VB.net umgesetz.
Laut dem example, muss ich ja nix mehr weiterhin machen, doch das Fenster mit dem Report, wird bei crash nicht angezeigt.
Hoffe auf eure hilfe!
Gruß.
Leider habe ich das Problem beim einbauen dieses Packets.
Ich hab das Ding mithilfe von Nuget runtergeladen, einen Modul dazu erstellt und den Code aus Beispiel in VB.net umgesetz.
VB.NET-Quellcode
- Imports System.Net
- Imports System.Threading
- Imports System.Windows.Forms
- Imports CrashReporterDotNET
- Namespace Reporter.CrashReporter
- Friend Module CrashReport
- Private _reportCrash As ReportCrash
- <STAThread>
- Private Sub Main()
- 'Application.ThreadException += Function(sender, args) SendReport(args.Exception)
- 'AppDomain.CurrentDomain.UnhandledException += Function(sender, args)
- ' SendReport(CType(args.ExceptionObject, Exception))
- ' End Function
- AddHandler Application.ThreadException, Function(sender, args)
- SendReport(args.Exception)
- End Function
- AddHandler AppDomain.CurrentDomain.UnhandledException, Function(sender, args)
- SendReport(CType(args.ExceptionObject, Exception))
- End Function
- Application.EnableVisualStyles()
- Application.SetCompatibleTextRenderingDefault(False)
- _reportCrash = New ReportCrash("myEmail") With {
- .Silent = True,
- .ShowScreenshotTab = True,
- .IncludeScreenshot = False,
- .WebProxy = New WebProxy("Web proxy address, if needed"),
- .AnalyzeWithDoctorDump = True,
- .DoctorDumpSettings = New DoctorDumpSettings With {
- .ApplicationID = New Guid("Application ID you received from DrDump.com"),
- .OpenReportInBrowser = True
- }
- }
- _reportCrash.RetryFailedReports()
- Application.Run(New MainView())
- End Sub
- Sub SendReport(ByVal exception As Exception, ByVal Optional developerMessage As String = "")
- _reportCrash.DeveloperMessage = developerMessage
- _reportCrash.Silent = False
- _reportCrash.Send(exception)
- End Sub
- Sub SendReportSilently(ByVal exception As Exception, ByVal Optional developerMessage As String = "")
- _reportCrash.DeveloperMessage = developerMessage
- _reportCrash.Silent = True
- _reportCrash.Send(exception)
- End Sub
- End Module
- End Namespace
Laut dem example, muss ich ja nix mehr weiterhin machen, doch das Fenster mit dem Report, wird bei crash nicht angezeigt.
Hoffe auf eure hilfe!
Gruß.