From f23bafa6a4eebf272d04907669b6663c0fd93510 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 12 Nov 2007 19:21:45 +0000 Subject: [PATCH] Added instructions on how to disable warning on OpenTK.GameWindowExitException when running under the Visual Studio debug process. --- Source/OpenTK/GameWindow.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs index aa1dbca7..131e4d45 100644 --- a/Source/OpenTK/GameWindow.cs +++ b/Source/OpenTK/GameWindow.cs @@ -1327,13 +1327,17 @@ namespace OpenTK #region --- GameWindow Exceptions --- + [DebuggerNonUserCode] class GameWindowExitException : ApplicationException { public override string Message { get { - return "GameWindow exit event. If this is caught in Visual Studio, don't worry - this is perfectly normal."; + return +@"This exception is a normal part of the GameWindow shutdown process and is completely harmless. While this warning will never be seen by end-users, Visual Studio reminds you that an exception is leaving your code unhandled, which can sometimes be a security breach. +You can disable this warning for this specific exception: select Debug->Exceptions from the menu bar and click ""Add"". Choose ""Common Language Runtime Exceptions"", type ""OpenTK.GameWindowExitException"" in the box below and click ""Ok"". Deselecting the ""User-unhandled"" checkbox from the newly created exception will disable this warning. +Alternatively, you can disable the ""Just my code"" debugging mode (""Tools->Options->Debugging->General"" and untick ""Enable Just my code (Managed only)"". This has the sideffect that it will allow you to step into OpenTK code if an error happens. Please, do this only if you are confident in your debugging skills."; } } }