wx.dll is mostly working and is very useful using window xp Visual Studio 2005.
I have encounter the following problem.
Index value to variables in _G may not be available ( maybe only within event )
Reproducing the problem
create wx.dll
run:
lua editor.wx.lua auidemo.wx.lua bindings.wx.lua calculator.wx.lua
at line 397 attempt to index a field '?' (a nil value)
the line is
local pageText = openDocuments[id].fileName or "untitled.lua"
the index 'id' in openDocuments has vanish
---------------------------- Testing
add
wx.wxMessageBox(type(openDocuments[id]), tostring(id), wx.wxOK, frame)
wx.wxMessageBox(type(openDocuments[100]), tostring(100), wx.wxOK, frame)
just before the line
local pageText = openDocuments[id].fileName or "untitled.lua"
run the same test.
notice that when id 102 is used that both
openDocuments[id] is nil the expected problem and also
openDocuments[100] is nil we know that is not true.
If you keep tracing then openDocuments[102] reappears.
NOTE:
I have a dump program which shows that openDocuments has the index 100, 101
and 102 when it is not found. (dumping _G)
-------------------------------- More info
I have also encounter some memory error in lua while usin wx.dll but this is
probably related. I will try to narrow the problem but I am not very familiar
with the code.
Thanks for all your work.
Andre
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users