lua-users home
lua-l archive

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


Thank you very much and I'm very appreciated about your suggestion.
 
I've solved the problem. I built the lua library as a static LIB, and built my own extension as a DLL.In the lib, there was a static global variable "dummynode" in ltable.c, so there would be two copy of this var in the lua.exe and my dll, that caused the memory corruption.Now I build the lua lib as a DLL, all things go well!

BTW, it seems hard to buy the 2nd edition of pil in China now and the price of the overseas edition is very high.So what a pity for me.