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.