At the end of the game, throw exception

At the end of the game, throw exception
‘SharpDX.SharpDXException’ (in SharpDX.Direct3D11.dll)
6 same errors.
Since there is no error code, we do not know what is causing the problem.
It’s at the end of the game, so it’s not a problem, but it bothers me.
help me!

*In Japanese.

例外がスローされました: ‘SharpDX.SharpDXException’ (SharpDX.Direct3D11.dll の中)

What system are you running on?

Can you run a blank template game?

You should be implementing Throw/Catch type code to create your own error notifications.

1 Like

Thank you for writing in Japanese!

①Windows 10

②yes, But no errors.

③Understood! I’ll try to find out when the error occurs and implement a throw/catch type code.

Thanks for the reply.

1 Like

You have something like this in your main method (program.cs)?
メイン メソッド (program.cs) に次のようなものがありますか?

static void Main()
  AppDomain.CurrentDomain.UnhandledException += Handle_UnhandledException;

private static void Handle_UnhandledException(object sender, UnhandledExceptionEventArgs e)
	Debug.WriteLine("Unhandled exception:");
1 Like

Thank you for writing in Japanese!

Thanks for the reply!
It wasn’t there, so I added it, but I didn’t catch the error.

That’s really strange, I’m not sure why it’s not caught. I’m sorry, I don’t have any other ideas :frowning:

それは本当に奇妙です、なぜそれが捕まらないのか私にはわかりません。 申し訳ありませんが、他のアイデアはありません:(

1 Like

Thank you for your reply.
I will investigate the timing of the error.

How do you know that there is an exception in the first place? Does the debugger catch it? Or do you see it in the output window?

Thanks for the question.
Error appear in the output window.

You can try adding the exception “SharpDX.SharpDXException” to your “Break when thrown” settings to see if the debugger catches it when exiting the game, hopefully you can see more info then.