Solved

OpenCV 0xc0150002 Error

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

828 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