lua-users home
lua-l archive

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

On Fri, Sep 24, 2010 at 6:25 AM, Cosmin Apreutesei
<> wrote:
>>lua "test_dll.lua"
> 48570
> 42609
> libs still hanging:
>        alien library ˆ"A
>        alien library dll2.dll

There is a bug in the __tostring metamethod for libraries, that is why
you are seeing garbage, sorry. BTW, you need to set lib=nil in your
code or you won't get collect the second library, and you need to call
collectgarbage twice to collect them, because of the finalizer.

Fabio Mascarenhas