WPF(.net) では、次のコードを使用して予期しない例外を処理し、プログラムを適切に終了できます。
private void Application_Startup(object sender, StartupEventArgs e) {
this.DispatcherUnhandledException += App_DispatcherUnhandledException
}
private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) {
// handle unhandled exception
}
このようなものは VCL でも利用できますか? それとも標準の C++ でさえありますか?