From: Блажнов В. <vbl...@ya...> - 2012-07-05 11:42:11
|
Sorry, it's my problem: I used wxLua.exe from obsolete version. Sample works well running with Unicode interpreter 2.8.12. 04.07.2012, 07:30, "John Labenski" <jla...@gm...>: > 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 > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |