Re: Binded C++ Class In DLL

Daniel Wallin <[email protected]> Thu, 30 Jun 2011 10:00:21 +0200
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Thu, Jun 30, 2011 at 9:18 AM, kuku super <[email protected]> wrote:
> i found the reason.
> because, luabind bind the .property member use the property_tag function
> pointer.
> so when bind the member in a dll with the property_tag pointer in the dll
> and when set the member in the .exe, the
> luabind::detail::class_rep::settable(lua_State* L) compare the pointer
> setted by dll and the &property_tag in .exe.  of course they were different.
> so the problem occured.
> that's the bug.
> i solved this problem by setting property_tag a const pointer temporarily.
> would it be fixed?

Are you linking dynamically to luabind? A very common mistake is
forgetting to define LUABIND_DYNAMIC_LINK when building both the
shared library and the application.

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2