Я получаю следующее исключение при использовании displayactionsheet и прекращении работы приложения в UWP, часть Android работает нормально.
The thread 0x5464 has exited with code 0 (0x0).
The thread 0xac4 has exited with code 0 (0x0).
The program '[12688] Business_App.UWP.exe' has exited with code -1 (0xffffffff).
Exception thrown: 'System.Exception' in Business_App.UWP.McgInterop.dll
Exception thrown: 'System.Exception' in System.Private.CoreLib.dll
Unhandled exception at 0x0715DC3C (Windows.UI.Xaml.dll) in Business_App.UWP.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x11665010, 0x00000004).
Следующий мой код:
string action = await DisplayActionSheet(null, "Cancel", null, "View History", "Add Customers");
if (action == "View History")
{
//Do some stuff
}
else if (action == "Add Customers")
{
//Do some stuff
}
Я добавил точки останова и разрыв приложения в строке DisplayActionSheet и перенаправил на App.g.i.cs. Добавление скриншота ниже.
![enter image description here](https://i.stack.imgur.com/DTm7G.png)
Это новая проблема для меня, кто-нибудь, пожалуйста, предложите решение.
Заранее спасибо.