[fixed] How to crash SB
It works. Save first pls
The next "CrashPTC" XD I'm too scared to try itDidn't affect me.
well maybe I do :PYou know what? That could actually be useful, in the sense that it restarts your device. You could have a program that has a restart 3ds option. I'm probably going to impliment that into my current project "TerminalDS"Yeah, if you enjoy the danger of data loss and corruption.
A$="A"*65536*65536
"An error has occurred, forcing the software to close. The system will now restart. (Unsaved data may be lost.)"
Yes, the 3DS resets.
EDIT:
A$="A"*65536*8192
gives
Out of memory
(a regular SmileBasic error) and
A$="A"*65536*16384
gives
Out of range
(another regular SmileBasic error, even if an inappropriate/misleading one for the circumstance). Three different responses to essentially the same problem. Sloppy, very sloppy.
now do a buffer overflow
I wish more languages were strongly type-checked. One of the biggest complaints I have with stuff like Python and SB is that they aren't strongly type-checked at all, resulting in bugs like A$="A"*65536*65536. Ideally, that should return a "Type Mismatch" error for multiplying a string by an integer.