Log In  

0

Granted, I'm a novice to both Lua and PICO-8, but when I was able to get down to the core of what was throwing the out of memory error (after a few hours), I was astounded.

This one line will eventually exhaust all memory:

WHILE TRUE DO END

The question is...why?

Rodney

P#38459 2017-03-20 14:14

::

was that the only line in the program you ran that exhausted available memory? how long is "eventually"?

P#38466 2017-03-20 18:01

::

No, it's several hundred lines long - put that at the end to 'spin' it so I could observe the display layout and make sure things are as I want (I'm working on a Telengard port/clone).

Even running only that single line from the interpreter after a fresh reboot, it will still run out of memory after a few hours.

Rodney

P#38468 2017-03-20 18:14

::

Do some logging. Is the system calling your update function repeatedly and each one is running forever, causing a pile-up of funtion calls?

P#38492 2017-03-21 00:15

::

This happens to me too anytime I try to use a while loop :(

P#38501 2017-03-21 06:49

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2017-11-24 05:29 | 0.194s | 1572k | Q:13