Solved

OpenCV 0xc0150002 Error

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

895 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

11 Experts available now in Live!

Get 1:1 Help Now