mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 11:25:29 +00:00
Added ability to launch console applications.
This commit is contained in:
parent
6c4372edbc
commit
ac515347d0
|
@ -92,8 +92,12 @@ namespace Examples
|
||||||
}
|
}
|
||||||
catch (Exception expt)
|
catch (Exception expt)
|
||||||
{
|
{
|
||||||
MessageBox.Show(String.Format("{3}{0}Stacktrace:{0}{1}{0}{0}Inner exception:{0}{2}",
|
if (expt.InnerException != null)
|
||||||
System.Environment.NewLine, expt.StackTrace, expt.InnerException, expt.Message), expt.Message);
|
MessageBox.Show(expt.InnerException.ToString(), "An error has occured: \"" + expt.InnerException.Message + "\"",
|
||||||
|
MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
else
|
||||||
|
MessageBox.Show(expt.ToString(), "An error has occured: \"" + expt.Message + "\"",
|
||||||
|
MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,10 +143,13 @@ namespace Examples
|
||||||
expt.InnerException
|
expt.InnerException
|
||||||
),
|
),
|
||||||
expt.Message);
|
expt.Message);
|
||||||
|
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IExample ex = (IExample)example.GetConstructor(Type.EmptyTypes).Invoke(null);
|
||||||
|
ex.Launch();
|
||||||
|
}
|
||||||
|
|
||||||
GC.Collect();
|
GC.Collect();
|
||||||
GC.WaitForPendingFinalizers();
|
GC.WaitForPendingFinalizers();
|
||||||
|
|
Loading…
Reference in a new issue