I'm planning a bigger script project with several script parts. My idea is to start another skript with dofile(). First tests are ok.
But there is an issue with
dofile() and
sleep(). When a script runs via
dofile() and in this script is included
sleep(), I get an error message. Without
sleep() is all fine.
example scripts:
--[[
@title test1
]]
for i=1, 10 do
print("test", i)
sleep(500)
print(get_meminfo().free_size)
end
--[[
@title test2
]]
dofile("A/CHDK/SCRIPTS/t_01.lua")
Error message:
attempt to yield across metamethod/C-call boundary
Any thoughts?
msl