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. :)  I guess I could always disabled garbage collection on that state completely, and just have my app eat memory until quitting!  As you say, not a solution, but it means my team can carry on working while I try and figure out what's going wrong.

 

From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Linker
Sent: 16 October 2009 12:38
To: Lua list
Subject: Re: Help: Crash in garbage collection

 

Hi Tom,

  You can just stop the GC for saving your data by calling:

collectgarbage("stop")

  It's not a solution for your problem, but just a work around.(May your time is limited.)

Thanks.

 

--
Regards,
Linker Lin
linker.m.lin@gmail.com