Solved

OpenCV 0xc0150002 Error

Posted on 2010-08-30
4
4,530 Views
Last Modified: 2012-06-27
I'm just getting started with OpenCV 2.1, and followed the instructions on http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010 and I can build and compile with no issues, but when I run the application, I get an error message saying:

The application failed to initialize properly (0xc0150002). Click OK to terminate the application.

I am using Visual Studio 2010 on Windows XP 64-bit.  I had the same issue on Windows 7 Home Premium 64-bit, but a windows XP professional (32-bit) running as a virtual machine on that Windows 7 PC worked fine.  I don't know if it is a 64-bit thing or what.

I looked all over the interent, and unfortunatly I can't find anything that solved my issue.  I have already installed the Visual C++ 2005 Redistributable, since that is was everyone said to do.  I've also looked at this page: http://opencv.willowgarage.com/wiki/VC2008Express, which was a little outdated (it refers to OpenCV1.1pre1 and Visual C++ 2008).  I've been able to do the whole Cmake thing and compile the stuff myself, which goes fine AND the samples run fine, it's just my stuff when I try to follow the instructions that I run into problems.

Thanks in advance.
0
Comment
Question by:gdpotter
  • 2
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
phoffric earned 500 total points
ID: 33563393
Maybe this discussion will help.
   http://www.experts-exchange.com/Programming/Languages/CPP/Q_24816853.html

A similar error was reported there.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 33563405
The above link has a bad link reference in it. But it does refer to this EE link (which should be good) that may help:
   http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_24156853.html
0
 

Author Comment

by:gdpotter
ID: 33563581
Those links just told me to do what I have done already: install the Visual C++ Redistributable or recompile the source.
Has anybody out there gotten OpenCV to work in Visual Studio 2010 on a 64-bit OS.  As I mentioned, I don't know if it is a problem with 64-bit, but my two machines that it will not work on are running 64-bit versions of windows.
0
 

Author Closing Comment

by:gdpotter
ID: 33605231
Okay, I don't really know why it didn't work before, but I installed the VC++ 2005 redistributable again, and now everything works.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question