rilden 2020-08-21 10:02
I wanted to report a bug but didn't know where to open a new topic.
After you run this cartrigde lowres nx becomes corrupted. If you don't close lowres nx and run any other cartridge that uses variables they will stop with an out of memory error.
Looks like the internal state of lowres nx is not reset after running this cartridge.
I tested in Windows 10.
Timo 2020-08-21 10:45
Looks like a bug, yes. Thanks for reporting, I will check it!
was8bit 2020-08-21 12:38 (Edited)
I am currently using testflight version with iOS 11.4.1 and i can rerun and get this error...
It prints a bunch if numbers before getting the error...
But seriously, you shouldn't CALL the same sub inside itself, you risk STACK OVERFLOW error...
Timo 2020-08-21 13:04
Calling a SUB from within itself is a valid solution for several problems. You only have to make sure that it exits correctly.
Timo 2020-08-21 13:06
Oh, i think the type mismatch error is actually a stack overflow, but not shown correctly. I need to fix that too.
was8bit 2020-08-21 14:05
@timo, I too easily screw things up ;)
rilden 2020-08-21 14:38 (Edited)
was8bit what happens if you drag another cartridge into lowres nx? The biggest problem is that after you run this program you will get errors in other cartridges too.
- run this cart
- don't close lowres nx, this is the most important part
- drag another cart into the currently open lowres nx
- you will get out of memory error in the other cart when accessing a variable
was8bit 2020-08-21 19:50
I tried your steps exactly...ran yours, but then no issues when opening up and running other files immediately after running yours...
was8bit 2020-08-21 19:53
I am running the current testflight version of NX... of course i have not tested in windows... my guess it has something to do with the windows version...
Timo 2020-08-21 20:20
Yes, the iOS version restarts the whole NX system each run, while the desktop version just resets its state.
Timo 2020-09-01 10:03
I fixed this for the coming version 1.1
was8bit 2020-09-01 15:04