示例#1
0
 [TestMethod] public void DisposeLua()
 {
     GcUtil.ExecuteAndKill(() =>
     {
         var lua = new Lua();
         var gc  = new GcUtil.GCTest(lua);
         lua.Dispose();
         lua.Dispose();
         return(gc);
     });
 }
示例#2
0
 [TestMethod] public void DisposeLuaTableAfterLua()
 {
     GcUtil.ExecuteAndKill(() =>
     {
         var lua   = new Lua();
         var table = lua.NewTable();
         var gc    = new GcUtil.GCTest(table);
         lua.Dispose();
         lua.Dispose();
         table.Dispose();
         table.Dispose();
         return(gc);
     });
 }