This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
apemanzilla's profile picture

Involuntary recursion

Started by apemanzilla, 10 July 2013 - 01:44 PM
apemanzilla #1
Posted 10 July 2013 - 03:44 PM
Hi,
I've been working on an OS and attempting to make a web-controlled forcefield for my base so i can monitor my base on vacation and such. However, when i run the program (linked below) i get a lot of spam "field off" "kill on" "done" "updated states" which should only happen once, and no messages from anything else. If i leave it running for a bit, it eventually stops due to stack overflow. Cpuld anyone help me?

http://pastebin.com/zTsAQth3
GopherAtl #2
Posted 10 July 2013 - 03:49 PM
the last thing drawScreen does is call buttonActions. The last thing buttonActions does is call drawScreen. This is a Bad Idea.tm
apemanzilla #3
Posted 10 July 2013 - 03:59 PM
Thanks! (How did I not notice that :blink:/> )