or rather.... lack of a Stack Overflow error.
This code should cause a stack overflow and indeed it seems to as the code stops running after about 43,000 recursions. But it doesn't give an error message. Run this code with Debug on:
OK the code is a bit extreme and you're probably never going to get many stack overflows in a real world scenario, but I can imagine the frustration an accidental stack overflow would cause, given that it doesn't seem to be offering an error message any more.
This code should cause a stack overflow and indeed it seems to as the code stops running after about 43,000 recursions. But it doesn't give an error message. Run this code with Debug on:
Global count = 0 Recursive() Function Recursive() count = count + 1 Print count ;Added this because the code isn't producing a stack overflow error Recursive() End Function
OK the code is a bit extreme and you're probably never going to get many stack overflows in a real world scenario, but I can imagine the frustration an accidental stack overflow would cause, given that it doesn't seem to be offering an error message any more.