gpt4 book ai didi

windows - 如何读取 WinRT 错误?

转载 作者:可可西里 更新时间:2023-11-01 11:47:10 26 4
gpt4 key购买 nike

在 Visual Studio 2015 中调试我的通用 Windows 应用程序时,我注意到输出窗口中存在一些错误:

Exception thrown at 0x00007FFE25967788 (KernelBase.dll) in xxx.exe: 0x40080201: WinRT originate error (parameters: 0x0000000080072738, 0x00000000000000C2, 0x000000217DCFEFD0).
Exception thrown at 0x00007FFE25967788 (KernelBase.dll) in xxx.exe: 0xE06D7363: Microsoft C++ Exception (parameters: 0xCCCCCCCC19930520, 0x000000217D6FD410, 0x00007FFE08A58AD0, 0x00007FFE08980000).
Exception thrown at 0x00007FFE25967788 (KernelBase.dll) in xxx.exe: 0x40080202: WinRT transform error (parameters: 0x0000000080072738, 0x0000000000000000, 0x0000000000000027, 0x000000217D6FEF90).

问题是我不知道如何阅读这些错误。这些代码是什么意思?

最佳答案

这只是噪音,调试器不可避免地会产生这种噪音,因为它总是获得异常的“第一次机会”通知。 WinRT 本身是用 C++ 代码编写的,并使用 SEH 异常来完成其工作。 COM 规则不允许此类异常跨越模块边界,它们会在 WinRT 代码中捕获。它们可能为在您自己的程序中重新引发的 api 调用生成错误代码,但情况不一定如此。看起来他们并没有那么忽视。

如果您想进一步挖掘以了解机器的灵魂,那么this blog post给出了不错的提示。

关于windows - 如何读取 WinRT 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42183740/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com