问题描述
GLLDBG 权限检查成功 ...
GLLDBG:PetUI 显示 C:\Users\india\AppData\Local\Packages\0c046c82-7c9c-41e1-b7aa-0c1798833708_1d3xttr4xanc4\LocalState\photos\img676e113a6a2a9d4
抛出异常:System.Private.CoreLib.dll 中的“System.ArgumentNullException” 在 PetDiary.UWP.exe 中的 0x76EAA892 (KernelBase.dll) 处引发异常:WinRT 起源错误 - 0x80004003:'System.ArgumentNullException:值不能为空。 在 Xamarin.Forms.Platform.UWP.Platform.SetCurrent(Page newPage,Boolean popping,Boolean modal,Action completedCallback) 在 System.Runtime.CompilerServices.AsyncmethodBuilderCore.c.b__7_0(对象状态) 在 System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()'。 onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!768325F0: (caller: 76795156) ReturnHr(1) tid(771c) 8007007E 找不到指定的模块。 在 PetDiary.UWP.exe 中的 0x76EAA892 (KernelBase.dll) 处引发异常:WinRT 起源错误 - 0x80004003:“值不能为空。”。 onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!768325F0: (caller: 76795156) ReturnHr(2) tid(771c) 8007007E 找不到指定的模块。
崩溃以生成的 InitializeComponent 函数中的 UnhandledException“处理程序”结束
public void InitializeComponent()
{
if (_contentLoaded)
return;
_contentLoaded = true;
DebugSettings.BindingFailed += (sender,args) =>
{
global::System.Diagnostics.Debug.WriteLine(args.Message);
};
UnhandledException += (sender,e) =>
{
if (global::System.Diagnostics.Debugger.IsAttached)
global::System.Diagnostics.Debugger.Break(); // <--- CRASH HERE!
};
有什么想法吗?这看起来很熟悉吗? UWP 是我存在的祸根...(我删除了 #if/#endif 因为格式化程序抱怨)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)