lua-users home
lua-l archive

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


In our project we use this:

render = Library { "render" }
-- load DLL, and create it object (userdata) instance in table

shader = render.Shader { "graphics/shaders/gloss" }
-- create object (userdata) from render.DLL

But, if we do this:

render = nil
-- unload render.DLL

Program go to unpredicted state.

The question is: how we can control this situation?