Solved

OpenCV 0xc0150002 Error

Posted on 2010-08-30
4
4,513 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now