lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, everyone. I'm working on implementing a binding between lua and our own component system. Now I'm confronting an odd problem. Following is a fraction of my code:
LUAELALIB_API int luaopen_elalua(lua_State *L) {
    lua_newtable(L);
    return 1;
 }
when I run my program like "require ("myext")", there'll occur a memory corruption.
I'm using lua5.1, but learning lua from pil 1st edition. I want to know whether there is any wrong with my code?
btw, our system has an mechanism to detect memory corruption. I don't know whether there are any tools to detect that on other system.
 
Thank you!


--
Best Regards.

Chen guo
Tongji University, China