lua-users home
lua-l archive

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


Francesco Abbate <francesco.bbt@gmail.com> writes:
>> I think the proper solution would be to elliminate the references from
>> plot to lines (or at least to elliminate the use of such references when
>> finalizing a plot). Surely a plot may exist without a line, because it is
>> created first (when there are no lines around).
>
> Hmmm... I will think about this possibility but it seems to be a
> workaround. May be I will switch back to the old C++ reference
> counting method, it is may be more sound.

If you have some control over the exit, can't you clear out the registry
references and then force a garbage collection before calling lua_close?

-miles

-- 
Run away!  Run away!