lua-users home
lua-l archive

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


> The fault is at
> line 258 in ltable.c (in luaH_set):
> 
>       while (othern->next != mp) othern = othern->next;  /* find previous */
> 
> othern is NULL. mp->key is also all zeros.

That is strange. mp->key shouldn't be all zeros (if the tag is zero, the
value should be a valid TString pointer).


> My guess is that I am causing Lua to attempt to
> access an already-deleted C++ pointer

The only place where Lua accesses "user" pointers is when calling C 
functions, but it is not common to delete them. Lua never accesses an 
userdata (I hope). 

-- Roberto