Visual Basic issues. (VB 2012)

  • The-Fall
    26th May 2013 Member 0 Permalink

    I have an application that I have been developing & an re-occurring error has me quite confused.

    In the code, I have a statement that goes something like:

     

    Generate a new problem.

    If (ArithmeticID = 1) then

        If ForceAddition = true then

             Call GenAddition()

       Else 

             'Restart this loop

       End If

    ElseIf (ArithmeticID = 2) then

       If ForceSubtraction = true then

             Call GenSubtraction()

       Else 

             'Restart this loop

       End If

    ElseIf (ArithmeticID = 3) then

       If ForceMultiplication = true then

             Call GenMultiplication()

       Else 

             'Restart this loop

       End If

    EndIf

     

    That statement is inclosed within a try catch statement with the catch reading

    " Catch ex as StackOverFlowException

         <blah blah code here>

      End Try

     

    However, there is a crash caused by an StackOverflowException in this very statement & the Try,Catch does not seem to work.

  • SuinDraw
    26th May 2013 Banned 0 Permalink
    This post is hidden because the user is banned