lua-users home
lua-l archive

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


> Thanks, this seems to work.  Mostly.  There seems to be a caveat:
> if you call lua_getinfo (even if 'what' is "") from within the
> realloc function, then lua code mysteriously fails with "attempt to
> concatenate a nil value" where no concatenation takes place that I can
> see.

You should not call Lua from within the realloc function. This function
is called from the most internal guts of Lua, so any side-effect from
your calls to Lua may interfere with whatever Lua is doing at the time.

-- Roberto