There seems to be a race condition in finalization of dynamiclua causing a crash 80% of the time.
Example: Program.cs, use using.
The exception is: System.AccessViolationException from KeraLua (I'm on Win 8.1, 64bit .NET 4.5, AnyCpu config). It's thrown from the GC Finalizer Thread, while all other threads are already dead. Perhaps, the finalizer should be empty.
GC Finalizer Thread
Maybe that would help: http://stackoverflow.com/a/152086/847349
Correctly implement IDisposable, fixes #15
I must admit, I never completely understood IDisposable and Finalizers, leading to my buggy implementation that was basically a use-after-free. No I read http://stackoverflow.com/a/538238 and made it better :)
superb! will you push it to nuget?
Oh, I forgot that... Now it's also on NuGet, version 1.1.2