Re: Assertion failed
Sandro Ferreira <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Dec 10, 2009 at 8:14 PM, Daniel Wallin <[email protected]> wrote: > 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 > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user > Hi Daniel, No, it's only the relevant code, just to show the assertion. The rest is only API definition (dllexport/dllimport). I'm using Visual Studio 2005. I can send the complete code, if you need. Thanks. -- Sandro Souza Ferreira ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user