Correctly terminating Lua

Mar 24, 2015 at 9:58 PM
Hello,
This is my first time using Lua in a .NET application and I need to keep my scripts loaded during the entire execution time, the solution I've found is to start it without using, but when my application is terminating, what should I do to properly terminate Lua?

I thought in the following code, but I'm not sure if I skipped something:
public void End()
{
    g.Clear();
    l.Clear();
}
Thanks in advance, and sorry about english errors.
Coordinator
Mar 25, 2015 at 12:50 PM
Hello,

if you want terminate the whole lua engine. Just call Dispose on from the Lua-Class.
But you do not need to call this, and Dispose also does not free all objects. Because, the might be active code in the application.
Marked as answer by KirieZ on 3/26/2015 at 9:34 AM
Mar 25, 2015 at 2:55 PM
So, if I just close my application everything is ok?
Coordinator
Mar 25, 2015 at 11:13 PM
Exact.