lua-users home
lua-l archive

Re: Boxed userdata and garbage collector

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


 Thanks Roberto,
I did not try this, i will test it tomorrow.
Thanks, Sylvain.
Le 02/09/2010 22:06, Roberto Ierusalimschy a écrit :
 * But, from the LUA point of view, we allocate only a pointer (ie 4
 or 8 bytes typically) : so the memory computed by the garbage
 collector is very low
Have you tried to call "collectgarbage('step', x)" (for some
reasonable 'x') each time you allocate a new picture?
-- Roberto
--
=================================
Sylvain FABRE
sylvain.fabre@inpixal.com
Fixe: 09 72 11 30 24
Mobile: 06 30 12 72 34
Fax : 09 72 11 10 71
=================================

AltStyle によって変換されたページ (->オリジナル) /