moonsharp-devs / moonsharp

An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.
http://www.moonsharp.org
Other
1.42k stars 214 forks source link

CTRL-Z crashes with unhandled exception #192

Open tonypdmtr opened 7 years ago

tonypdmtr commented 7 years ago

Pressing CTRL-Z on the interpreter causes the following:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at MoonSharp.Program.InterpreterLoop(ReplInterpreter interpreter, ShellContext shellContext) in Z:\git\my\moonsharp\src\MoonSharp\Program.cs:line 68 at MoonSharp.Program.Main(String[] args) in Z:\git\my\moonsharp\src\MoonSharp\Program.cs:line 47

zbigniewcebula commented 2 years ago

That's not a problem of MoonSharp, your Program.cs script is faulty.

tonypdmtr commented 2 years ago

Almost 5 years too late it doesn't really matter anymore :)