end program from a module function
BlitzMax Forums/BlitzMax Module Tweaks/end program from a module function
| ||
Is there any way to end the calling program execution from within a module call? I need to avoid calling programs execution when there's a security violation in the program using my module, and I don't want to make it throwing errors that can be handled... Any way to do that? |
| ||
simply call "end" :-) Will end the program. Or "runtime error" so the user knows why it broke. |
| ||
End will not end the program execution when it's called from inside a method, in a class, in a module. I don't know why, but it doesn't end program's execution! I've made some test, and now it works... mmm.... I need to sleep... hehehe stupid me... |
| ||
Looks so ;-) Happy it worked. |