Re: [luabind] Wrong userdata pointer returned since update to luabind 0.9
Brought to you by:
arvidn,
daniel_wallin
From: Daniel W. <da...@bo...> - 2010-02-24 13:24:15
|
On Wed, Feb 24, 2010 at 01:26:06PM +0100, Stefan Reusch wrote: > I have switched to luabind 0.9 and now the userdata pointer are wrong, > which are returned. Any ideas to fix the problem? LuaLabel gets in my > example a LuaDialog object as parent, but the userdata object pointer > is not the same, which it was on create function. I don't understand. Can you show the relevant functions, CLuaLabel::Create() and LuaDialog::Create()? > [...] > OptionDlg = LuaDialog() > Label = LuaLabel() > Button = LuaButton() > > function OnSettings() > OptionDlg:Create("Settings", {0,0,100,100}) > Label:Create(OptionDlg, {0,0,100,10}) -- Problem is here: the > optiondlg object is not the same one line before > end -- Daniel Wallin BoostPro Computing http://www.boostpro.com |