Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OpenCV 0xc0150002 Error

Posted on 2010-08-30
4
Medium Priority
?
4,580 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

916 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