令人困惑的错误 E_UNEXPECTED(0x8000FFFF)

发布于 2024-09-10 06:23:31 字数 365 浏览 0 评论 0原文

没有可用的错误消息,结果代码:E_UNEXPECTED(0x8000FFFF)。

我通过谷歌找不到任何解决方案。解析excel文件时遇到这个问题。有谁知道为什么会发生这种情况?如果它允许我从错误中恢复就好了,但它甚至会经历 try catch 和 finally 子句并使我的程序变得无用!

这是我昨天问的一个更详细的相关问题:

OleDb 对象无效或不再设置

No error message available, result code: E_UNEXPECTED(0x8000FFFF).

I couldn't find any solutions through google. Encountered this while parsing an excel file. Does anyone know why this even occurs? It would be fine and all if it allowed me to recover from the error, but it even goes through the try catch and finally clause and renders my program useless!

Here's a more detailed question I asked yesterday that's related:

OleDb Object Invalid or No Longer Set

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

童话 2024-09-17 06:23:31

E_UNEXPECTED 通常在灾难性故障时返回。这意味着“我不能说出了什么问题,但是肯定是错误的,我认为你对此无能为力。中止程序并克服它”。大多数情况下,当由于错误或无法识别有缺陷的输入数据(或参数)而导致某些不变量被破坏时,会返回该不变量,从而导致内部数据损坏。然而,当懒惰的程序员不想挖掘有用的错误值并简单地返回可用的最严重的消息时,他们就会返回它。

如果您使用的库通常应该可以工作,那么您应该仔细检查是否以正确的方式使用它。

E_UNEXPECTED is usually returned on catastrophic failures. It means "I can't say what went wrong, but something is definitely wrong and I don't think you can do anything about it. Abort the program and get over it". Most of the time it is returned when some invariant is broken because of a bug or a failure to recognize defective input data (or parameters) lead to a corruption of internal data. Lazy programmers however return it when they don't feel like digging up a useful error value and simply return the most serious message available.

If the library you are using is usually supposed to work, then you should double check if you are using it the correct way.

东风软 2024-09-17 06:23:31

当我的文件损坏时,我遇到了这个错误。请检查你的。

I faced this error when my file got currupted. Please check yours.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文