From: John L. <jla...@gm...> - 2012-07-04 03:30:41
|
On Tue, Jul 3, 2012 at 4:34 AM, Блажнов Валерий <vbl...@ya...> wrote: > tree.wx.lua sample works with errors with 2.8.12 MSW Unicode build: > C:\Program Files\Lua\5.1\lua.exe: ...s\wxLua\wxLua-2.8.12-MSW-Unicode\samples\tree.wx.lua:154: wxLua: Expect > ed a 'number' for parameter 1, but got a 'string'. > Function called: 'wxLuaTreeItemData(string)' > 01. wxLuaTreeItemData::wxLuaTreeItemData(number]) > stack traceback: > [C]: in function 'wxLuaTreeItemData' > ...s\wxLua\wxLua-2.8.12-MSW-Unicode\samples\tree.wx.lua:154: in function 'main' > ...s\wxLua\wxLua-2.8.12-MSW-Unicode\samples\tree.wx.lua:193: in main chunk > [C]: ? I don't get this error using the same binaries and neither should you. The wxLuaTreeItemData actually takes any type of data as an input parameter. I opened a DOS prompt, went to the wxLua/bin dir and ran > lua.exe ..\samples\tree.wx.lua Can you explain a little how you are running this? Regards, John |