lua-users home
lua-l archive

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


Wednesday, April 2, 2003, 10:47:01 AM, you wrote:

> In Windows, blocks created by a dll cannot be free in a different dll
> (is that right?), even if both dlls contain exactly the same code.

Yes that is right.

> So, to avoid problems in Windows, the "correct" way to use loaded
> objects is to make Lua itself a dll loaded by the main program,
> so that the main program, Lua, and any extra module all share a single
> copy of Lua.

This is the way I solved it for my windows program, so I can confirm
this works.

- Ron