Re: Wrong userdata pointer returned since update to luabind 0.9

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.