[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: invalid key to 'next'
- From: Asko Kauppi <askok@...>
- Date: Sun, 24 May 2009 22:46:37 +0300
You might be surprised to know this is a known issue.
Agi Shi kirjoitti 24.5.2009 kello 22:07:
Thanks for all of the advice, it is greatly appreciated.
My teammate spent a full night debugging this issue. Put your helmets
on because this will blow you away xD.
The issue was Direct3D. Apparently, our project ran fine under
OpenGL. However, Direct3D caused it to break given the identical Lua
code. After his night-of-debugging (NOD), making the Direct3D device
use consistent floating point instead of fast floating points (doubles
instead of floats) fixed it. I have no clue how this issue resulted
in "invalid key to 'next'" O_o
On Sun, May 24, 2009 at 12:43 PM, Jerome Vuarand
2009/5/24 Agi Shi <firstname.lastname@example.org>:
Hi all! I'm nullsquared, new to the mailing list, with a bit of a
This code: http://lua.pastebin.com/f7b33bcca
Works 100% under Lua 5.0.x (paired with any recent version of
fails under Lua 5.1.4 with the runtime error message: invalid key
When sheet.update() is called, it iterates over the passed in
creates a GUI; the table itself is only read, not modified, and it
iterated over via standard luabind table iterators.
I cannot quite figure out why Lua 5.1.4 breaks my code, any ideas?
You should reduce your code to something shorter showing the problem.
What you pasted is just too long to find the bug visually, and it's
incomplete so we cannot run it.