Tao.Lua SDK Documentation

Lua.lua_close Method 

Destroys all objects in the given Lua state (calling the corresponding garbage-collection metamethods, if any) and frees all dynamic memory used by this state. On several platforms, you may not need to call this function, because all resources are naturally released when the host program ends. On the other hand, long-running programs, such as a daemon or a web server, might need to release states as soon as they are not needed, to avoid growing too large.

[Visual Basic]
Public Shared Sub lua_close( _
   ByVal L As IntPtr _
)
[C#]
public static void lua_close(
   IntPtr L
);

Parameters

L

See Also

Lua Class | Tao.Lua Namespace