Posted 15 May 2012 - 10:58 PM
Computercraft doesn't seem to like it when i try to use infinite while loops in parallel functions.
Simplified code:
it runs for a few seconds, then it crashes with a JVM NullPointerException error
Simplified code:
running = true
function threadOne()
while running do
--Logic here
end
end
function threadTwo()
while running
--logic here
end
end
parallel.waitForAny(threadOne, threadTwo)
it runs for a few seconds, then it crashes with a JVM NullPointerException error