[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_load modifies the stack
- From: Marc Balmer <marc@...>
- Date: Fri, 22 Apr 2011 18:52:28 +0200
Am 22.04.11 15:33, schrieb Marc Balmer:
> I have a table on the stack, then I call lua_load() to load a function.
> After lua_load() completes without an error, I have a function on top
> of the stack. But my table, which should now be at position -2, is
> gone. There is a nil value there.
> Hwo can that happen? Is that some memory corruption in my lua_Reader
> function or are there situations where lua_load() modifies the stack in
> such a way?
this was my fault. the lua_Reader is in order. but the stack it
operated on was being garbled by a different section of the program.