[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A problem about extending lua
- From: "陈果" <guo.chen.cn@...>
- Date: Wed, 5 Apr 2006 19:46:05 +0800
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.