令人困惑的错误 E_UNEXPECTED(0x8000FFFF)
没有可用的错误消息,结果代码:E_UNEXPECTED(0x8000FFFF)。
我通过谷歌找不到任何解决方案。解析excel文件时遇到这个问题。有谁知道为什么会发生这种情况?如果它允许我从错误中恢复就好了,但它甚至会经历 try catch 和 finally 子句并使我的程序变得无用!
这是我昨天问的一个更详细的相关问题:
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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
当我的文件损坏时,我遇到了这个错误。请检查你的。
I faced this error when my file got currupted. Please check yours.