I use a custom exception in a VB.NET app, and from the time I do the throw to the time I get it is 6 seconds on a 2.4 GHz P4. Is there something that can be done to speed this up? Here is a simple testcase
Public Class testException : Inherits ApplicationExceptio
Sub New(
MyBase.New(
End Su
End Clas
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loa
Tr
Debug.WriteLine(Today & " " & TimeOfDay & ": Ready to call throwtest"
throwtest(
Catch ex As testExceptio
Debug.WriteLine(Today & " " & TimeOfDay & ": Caught testexception"
Catch ex As ApplicationExceptio
Debug.WriteLine(Today & " " & TimeOfDay & ": Caught applicationexception"
Catch ex As Exceptio
Debug.WriteLine(Today & " " & TimeOfDay & ": Caught exception"
End Tr
End Su
Private Sub throwtest(
Debug.WriteLine(Today & " " & TimeOfDay & ": Ready to throw exception"
Throw New testExceptio
Debug.WriteLine(Today & " " & TimeOfDay & ": Exception thrown"
End Su