lua-users home
lua-l archive

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


> 
> > Lol.  Well I disabled the garbage collector before saving and it
does
> indeed stop the crash.  If I do a full collect after re-enabling it,
it
> crashes then instead, but at least I have a valid save file.
> 
> How do you save the file?

I build up a structure of embedded tables then save them out using some
custom file writer that goes through all the tables saving to a text
file.  The crash occurs when building up the initial table to save. The
structure I am saving out is a depth first search of an object tree with
each table representing a child node.  Generally the crash occurs when I
have recursed to at least 10 nodes deep.