C+UWP项目,具有C++中的本地组件,针对Windows 10 14393,Visual Studio 2019。运行32位版本。在一台机器(windows10x64)上,它运行良好。在另一台计算机(也是Windows 10 x64)上,在启动期间,会弹出一个JIT调试器窗口:
“[204976]中发生未处理的win32异常”RuntimeBroker.exe."
以及调试器的选择。
如果您单击“取消”,则有问题的UWP应用程序将正常启动。如果选择调试,则例外情况是:
编辑:执行以下片段时崩溃:
IReadOnlyDictionary<string, ProductLicense> ld = CurrentApp.LicenseInformation.ProductLicenses;
//Which of the ProdIDs are purchased?
bool[] Actives = ProdIDs.Select(
pid => ld.ContainsKey(pid) && ld[pid].IsActive).ToArray();
这个
ld
不为空,但当
ContainsKey