can not use class in tolua++,crash at lua_close()
Posted: Sat Apr 05, 2008 08:51
in tolua++ 1.0.92 samples,"tclass",I make the pkg "tclassbind.cpp" and compile successfully,everything is ok when it runs to the luaL_dofile(L,"tclass.lua") but the app crashed at lua_close(), heap may be crashed because of "tclass.exe" or the Dlls it used.
if I remove "tolua_tclass_open(L)" ,not to register my class to lua,everything is right. Why?
I have tried to set up a new simple class,but the result is the same.
//by the way: I want to ask the CEGUI author a question why you chose tolua++ not luabind or luaWrapper as the script, we have to write pkg and lua files by ourselves when we use lua,it seems a little inconvenient
if I remove "tolua_tclass_open(L)" ,not to register my class to lua,everything is right. Why?
I have tried to set up a new simple class,but the result is the same.
//by the way: I want to ask the CEGUI author a question why you chose tolua++ not luabind or luaWrapper as the script, we have to write pkg and lua files by ourselves when we use lua,it seems a little inconvenient