暂停执行关于"微软的Visual C ++运行时错误" -popup [英] Execution halts on "Microsoft Visual C++ Runtime Error"-popup

查看:196
本文介绍了暂停执行关于"微软的Visual C ++运行时错误" -popup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前从事的用途JavaCv / OpenCV进行人脸检测的项目。由于OpenCV的偶尔抛出一个错误,和OpenCV / C ++错误到Java异常的传播是没​​有充分发挥作用的是,这意味着Java的主回路崩溃,没有办法恢复。

A project I am currently involved in uses JavaCv/OpenCv for face detection. Since the OpenCv occasionally throws an error, and the propagation of OpenCv/C++ errors to Java Exceptions isn't fully functional yet, this means the Java main-loop crashes with no way to recover.

不过,code给出大多是准确的结果,因为我们是一个大的数据库上运行它,我烤了执行绕一个快速批处理脚本继续下去,而Java code内部管理一个 ID ,以确保它流向何方坠毁后继续。

However, the code gives mostly accurate results, and since we're running it on a large database I baked a quick Batch-script around the execution to keep it going, and the Java code internally manages an id, to make sure it continues from just after where it crashed.

:RETRY
java -Xmx1024m -jar Main.jar
IF ERRORLEVEL 1 GOTO RETRY
EXIT 0

不过,偶尔我得到一个运行时错误弹出,如下:

However, occasionally I get a Runtime Error pop-up, as follows:

运行时错误!

程序:C:\\ WINDOWS \\ SYSTEM32 \\的java.exe

Program: C:\Windows\System32\java.exe

此应用程序已请求运行在一个不寻常的方式结束。
  请联系应用程序的支持团队以获取更多信息。

This application has requested the runtime to end in an unusual way. Please contact the application's support team for more information.

在该点code暂停执行,直到弹出被点击,这实在是烦人,因为这意味着我的code不能没有我照顾它运行。

At which point the code execution halts until the pop-up is clicked, which is really annoying, as it means my code can't run without me babysitting it.

我发现这个问题,基本要求是一样的。有一个<一个href=\"http://stackoverflow.com/questions/1938715/disable-microsoft-visual-c-runtime-error/1938732#1938732\">accepted解决方案该问题,但因为我没有直接使用C ++的工作,我不知道怎样才能实现这一点。

I found this question, which basically asks the same thing. There is an accepted solution for that question, but since I'm not directly working with C++, I don't see how I can implement this.

是否有一个批次级解决这个问题?是否有一个Java / JavaCv级解决方案,可以捕捉到未来的OpenCV的C ++错误?任何其他解决办法?

Is there a Batch-level solution to this problem? Is there a Java/JavaCv-level solution to catch the C++ errors coming from OpenCv? Any other solution?

推荐答案

有趣的问题。
java.exe的是依赖于一个或一个以上的Visual C ++的DLL(像MSVCRT.DLL,MSVCR90.DLL等)。也许JAR文件引起JAVA.EXE导致此错误。 JAVA.EXE必须调用它提高了异常,因此运行时错误一些CRT函数。

Interesting question. Java.exe is dependent on one or more of Visual C++ DLLs (like MSVCRT.DLL, msvcr90.dll etc). Probably the JAR file is causing Java.exe to cause this error. Java.exe must be calling some CRT function which is raising the exception and hence the Runtime Error.

你能做的最好的办法是启动进程,让这个错误弹出,然后开始的进程资源管理,并查看调用堆栈。然而,解决这一问题最有可能是在你的控制。可能是Java的最新版本可能会有所帮助。

The best bet you can do is to launch the process, let this error pop and then start Process Explorer, and see the call stack. Nevertheless, solving this issue is most probably out of your control. May be latest version of Java may help.

这篇关于暂停执行关于&QUOT;微软的Visual C ++运行时错误&QUOT; -popup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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