[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.0 metatable and stack safety
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 19 Nov 2002 15:35:37 +0000
> I just noticed that an incorrect (written in Lua) __newindex
> method can crash the application by overflowing the C-language
> stack.
Lua itself limits the number of active calls you can stack before an
error. It seems that its limit is too large for the default VC++ stack.
You can try a bigger stack in C, or a smaller stack in Lua. For
the later, add "-DLUA_MAXCALLS=2048" or "-DLUA_MAXCALLS=1024" to your
project options. (Please let us know if that fixes the problem.)
-- Roberto