From 6ee2a496bcc65f7e208937b8a83954ba599367c1 Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Mon, 22 Apr 2024 21:19:20 +0800 Subject: [PATCH] Try to add the workaround for unhandled exception at twinapi.appcore.dll for fixing https://github.com/M2Team/NanaZip/issues/400. --- NanaZip.UI.Modern/App.xaml.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NanaZip.UI.Modern/App.xaml.cpp b/NanaZip.UI.Modern/App.xaml.cpp index 0933b78..f3d8e1a 100644 --- a/NanaZip.UI.Modern/App.xaml.cpp +++ b/NanaZip.UI.Modern/App.xaml.cpp @@ -8,6 +8,9 @@ namespace winrt::NanaZip::Modern::implementation { App::App() { + // Workaround for unhandled exception at twinapi.appcore.dll + // Fixes: https://github.com/M2Team/NanaZip/issues/400 + this->AddRef(); ::MileXamlGlobalInitialize(); }