QB64 BUG: No error on stack overflow.by qbguy (no login)This code: CALL COUNT(0) SUB COUNT(X) PRINT X CALL COUNT(X+1) END SUB When run in QB64, it counts up and then exits with no error (I'm guessing because of the stack overflow). In QBASIC, it produces a stack overflow error that can be trapped. I don't know if it is possible to check for stack overflow in C. When run in QB64 it also counts up to a higher number than it does in QBASIC because QB64 gives more stack space. This is fine, and I guess when CLEAR is implemented it can just ignore the stack space parameter or actually set it either way but I don't know if there's a way to set stack space in C either. from IP address 76.195.133.68 |
| Response Title | Author and Date |
| * It is trapped by using a max depth variable probably. It might be a bit tricky though. | rpgfan3233 on Apr 4 |
| WTF? If you can get a break from C take it! | on Apr 4 |
| Clippy, your constant harassment of qbguy is unwarranted! | on Apr 4 |
| Well it does not seem to bother him anyhow LOL | on Apr 5 |