混淆错误E_UNEXPECTED(0x8000FFFF) [英] Confusing error E_UNEXPECTED(0x8000FFFF)

查看:1101
本文介绍了混淆错误E_UNEXPECTED(0x8000FFFF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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

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

我不能通过google找到任何解决方案。在解析excel文件时遇到这种情况。有人知道为什么这甚至发生吗?这将是罚款,所有如果它允许我从错误中恢复,但它甚至通过try catch和finally子句,并使我的程序无用!

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对象无效或不再设置


推荐答案

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.

这篇关于混淆错误E_UNEXPECTED(0x8000FFFF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆