handle timeout event
Hi I'm running a recursive function which in the worst case senario is of factorial order. (i.e: runs itself n! times)
As soon as n exceeds 7 in these worst case senario's the function times out (Error #1502). I want to handle this error event so that the user can be presented with an error that the problem is too complex.
I don't want to extend the timeout period as 15 seconds is reasonable.
And please don't suggest restricting n as the function is only of factorial order in the worst case senario
How can this error be captured/handeld
thanks in advance