From 537015b337c7e1b277d97b319ddfa13d0cd4b495 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 13 Apr 2008 15:51:31 +0000 Subject: [PATCH] Now handles security exceptions. --- Source/Examples/ExampleLauncher.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Examples/ExampleLauncher.cs b/Source/Examples/ExampleLauncher.cs index a9f61754..3e46f13c 100644 --- a/Source/Examples/ExampleLauncher.cs +++ b/Source/Examples/ExampleLauncher.cs @@ -255,7 +255,9 @@ namespace Examples } catch (System.Security.SecurityException e) { - + MessageBox.Show("The Example Launcher failed to start, due to insufficient permissions. This may happen if you execute the application from a network share.", "OpenTK Example Launcher failed to start.", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + Trace.WriteLine(e.ToString()); } } }