mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Added exception handling to MindBlow
This commit is contained in:
parent
dbf794c984
commit
0365b33993
1 changed files with 9 additions and 2 deletions
|
@ -160,8 +160,15 @@ namespace ShiftOS.WinForms.Applications
|
|||
{
|
||||
new Thread(() =>
|
||||
{
|
||||
Interpreter.Reset();
|
||||
Interpreter.Execute(programinput.Text);
|
||||
try
|
||||
{
|
||||
Interpreter.Reset();
|
||||
Interpreter.Execute(programinput.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Desktop.InvokeOnWorkerThread(() => Infobox.Show("Program Error", "An error occurred while executing your program: " + ex.GetType().ToString()));
|
||||
}
|
||||
}).Start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue