Opencv应用程序在运行时崩溃,错误代码为0x0000142 [英] Opencv application crashes at runtime with error code 0x0000142

查看:1066
本文介绍了Opencv应用程序在运行时崩溃,错误代码为0x0000142的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有openCV和minGW安装了代码块IDE按照这里找到的说明 http://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw/
i尝试了简单的图像加载程序在文章和构建过程很好。但是当我试图运行输出程序,它崩溃与错误消息应用程序无法正确启动(0xc0000142)。单击确定关闭应用程序。
我使用Dependency Walker查看程序是否无法加载dll模块,这里是Dependency Walker的输出屏幕
https://www.dropbox.com/s/f9iaftdt8atjwpl/Screenshot%202013-11-05%2022.21.45.png
i不用于DW,但我可以看到在其输出屏幕,一些openCV DLL无法加载和加载的Windows DLL是64位而不是32位(因为minGW是32位)。
我无法弄清楚为什么我已经为openCV的bin目录配置了Path环境变量,并且应用程序仍然无法加载dll模块。我认为Windows将自动加载正确的32位DLL,当运行32位应用程序,但这种情况下,应用程序仍然无法加载。
任何人都有想法?

I have openCV and minGW installed with codeblock IDE following the instructions found here http://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw/ i tried the simple image loading program in the article and the build process went fine. but when i tried running the output program, it crashes with the error message "the application was unable to start correctly (0xc0000142). Click OK to close the application." I used Dependency Walker to see if the program failed to load dll module and here's the output screen of Dependency Walker https://www.dropbox.com/s/f9iaftdt8atjwpl/Screenshot%202013-11-05%2022.21.45.png i am not used to DW but as i can see in its output screen, some openCV dll failed to load and the loaded Windows DLL were 64 bit instead of 32 bit (as minGW is 32 bit). I can't figure out why as i already configure the Path environment variable for the bin directory of openCV and the app still can not load the dll modules. And i think that Windows will automatically load the proper 32 bit DLLs when a 32 bit app is run but this situation the app still failed to load. Anyone has ideas?

推荐答案

首先,你必须检查路径是否正确 - 你可以复制dll到构建目录。如果它会工作,路径问题。

First, you have to check if the path is proper - you can just copy dlls to the build directory. If it would work, problem in path.

这篇关于Opencv应用程序在运行时崩溃,错误代码为0x0000142的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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