mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 18:25:30 +00:00
Added instructions on how to disable warning on OpenTK.GameWindowExitException when running under the Visual Studio debug process.
This commit is contained in:
parent
2ed985c231
commit
f23bafa6a4
|
@ -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.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue