Re: Assertion failed

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Sandro Ferreira wrote:
> Hi everybody,
> 
> I having an "assertion failed" on line 102 of inheritance.hpp file.
> 
> I'm using the latest version of github, and it's an error of the new
> version, becouse same code works on version 0.8.
> 
> I have two modules (dlls).
> The modules have the folowing code:
> 
> -- Module1 {
> class MOD1_API CMod1 {
> public:
>     CMod1(void) { fprintf_s(stdout, "CMod1::CMod1()\n"); }
>     ~CMod1(void){ fprintf_s(stdout, "CMod1::~CMod1()\n"); }
> };
> 
> extern "C" MOD1_API int luaopen_CMod1(lua_State* L)
> {
>     if (luabind::detail::class_registry::get_registry(L) == 0)
>         luabind::open(L);
> 
>     luabind::module(L)
>     [   luabind::class_<CMod1>("CMod1")
>            .def(luabind::constructor<>())
>     ];
> 
>     return 0;
> }
> -- }
> 
> -- Module2 {
> class MOD2_API CMod2 {
> public:
>     CMod2(void) { fprintf_s(stdout, "CMod2::CMod2()\n"); }
>     ~CMod2(void){ fprintf_s(stdout, "CMod2::~CMod2()\n"); }
> };
> 
> extern "C" MOD1_API int luaopen_CMod2(lua_State* L)
> {
>     if (luabind::detail::class_registry::get_registry(L) == 0)
>         luabind::open(L);
> 
>     luabind::module(L)
>     [   luabind::class_<CMod2>("CMod2")
>            .def(luabind::constructor<>())
>     ];
> 
>     return 0;
> }
> -- }

So this is the complete code? Nothing else? Which compiler are you using?

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

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
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.