HRESULT 0x80070057 是什么意思,为什么我的程序崩溃了? [英] What does HRESULT 0x80070057 mean, and why is my program crashing?
问题描述
我编写了一个程序,它拍摄两张图像,然后对它们运行算法以在前景"中分离出一只手,并将手势与已知的手势相匹配.
I've written a program that takes two images, then runs an algorithm on them to isolate a hand in the "foreground" and match the gesture to a known one.
几天前,我使用一些测试参数运行了该程序,只是为了测试我所做的一些调整,并且一切正常.从那以后我就没有碰过代码.
A few days ago, I ran the program with some test parameters, just to test a few tweaks I had made, and it all worked fine. I have not touched the code since then.
今天,我用两个新图像运行程序,但它崩溃了,给出了错误代码 0x0
和 HRESULT=0x80070057
.除此之外,根据工作室的说法,当我停止从 C# Visual Studio 2010 Express 调试时,不知何故,调试停止了.但是表单仍然启动,没有响应,并且无法关闭,即使从任务管理器中也是如此.我无法运行该程序,因为它说另一个实例仍在运行.
Today, I ran the program with two new images, and it crashed, giving me the error code 0x0
and HRESULT=0x80070057
. Beyond this, when I stopped debugging from C# Visual Studio 2010 Express, somehow, the debugging stopped, according to studio. But the form is still up, unresponsive, and unable to be closed, even from Task Manager. I can't run the program, because it says another instance is still running.
可能是什么原因造成的?我可以尝试解决什么问题?我很乐意提供可能有帮助的任何其他详细信息;我相对缺乏经验,不知道什么有用,什么没用.
What could be causing this? And what can I try to fix it? I'd be happy to provide any other details that might be helpful; I'm relatively inexperienced and don't really know what is and isn't helpful.
补充:我停止并启动了工作室,这似乎解决了问题.不过,如果有人能解释可能发生的事情,我们将不胜感激.
Addition: I stopped and started studio, and that seems to have fixed the problem. Still, if someone can explain what may have happened, it would be much appreciated.
另一个细节:程序在它应该做的事情接近尾声时崩溃了.我能够启动,加载两张图片,并运行算法,但在最后一步,它在我身上崩溃了.
Another detail: The program crashed near the end of what it was supposed to do. I was able to start, load both pictures, and run the algorithm, but in the last step, it crashed on me.
推荐答案
据我所知,错误代码意味着无法加载程序集.它已损坏或不可用.
From what I know the error code means, that an assembly couldn't be loaded. It is corrupt or not avaliable.
清除项目的 \bin
文件夹和 AppData (Temp) 文件夹(位于 C:\Users\your_username\AppData\Local\Temp\Temporary ASP.NET
) 并查看错误是否仍然发生.
Clear the \bin
folder of your project and the AppData (Temp) folder (located at C:\Users\your_username\AppData\Local\Temp\Temporary ASP.NET
) and see if the error still happens.
来源 MSDN
E_INVALIDARG
:一个或多个参数无效(0x80070057
)
这篇关于HRESULT 0x80070057 是什么意思,为什么我的程序崩溃了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!