Confusing error E_UNEXPECTED(0x8000FFFF)

拈花ヽ惹草 提交于 2019-12-23 05:27:28

问题


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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/3232883/confusing-error-e-unexpected0x8000ffff

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!