Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42443

can you block try-catch exception pop up ?

$
0
0
I have an error thats in another post.. but trying to get a band aide for now..

can you run this code..

Code:

        DebugText = Now.Date.Date & " " & Left(Now.TimeOfDay.ToString, 8) & vbTab & TracePrefix & TraceText & vbCrLf
        If My.Settings.DebugOn = True Then
            Try
                Trace.WriteLine(DebugText)
                Trace.Flush()
                'My.Computer.FileSystem.WriteAllText(gLogFileName, DebugText, True)
            Catch ex As Exception
                My.Computer.FileSystem.WriteAllText(My.Settings.DebugFilePath & "\" & My.Application.Info.AssemblyName & "_Exception.txt", ex.Message, True)
                WriteErrorCount = WriteErrorCount + 1
            End Try
        End If

and when it gets an excpetion.. just make it trace it.. and not show the exception popup window that
they need to click ??

Viewing all articles
Browse latest Browse all 42443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>