I'm using Lua v5.02
Are there any known issues in Lua 5.02 that would cause a live hang
inside luaV_execute (the function never returns, but continues to loop).
I assume that an infinite loop inside a lua script could cause this,
but I don't see here.
Could the placement of the "return" statement inside my Lua function
cause this?
The problem went away when I changed the code to remove the return
statement:
-- this one hangs
function bob()
for i = 1, table.getn(blah) do
-- some code here
end
if GetFoo() == 0
then
return
end
for i = 1, table.getn(blah) do
-- some code here
end
end
to:
-- no problem here
function bob()
for i = 1, table.getn(blah) do
-- some code here
end
if GetFoo() ~= 0 then
for i = 1, table.getn(blah) do
-- some code here
end
end
end
Brian