Learn how to a build a cloud-first strategyRegister Now


Error Code: 0xc0150002 -  Unable to run a program written in VC++ on any visual studio platform !!

Posted on 2009-02-18
Medium Priority
Last Modified: 2013-11-26
I am using OpenCV libraries to write a small program to find the edge of an image. I configured the visual studio completely as directed by OpenCV website. The program has compiled with 0 errors. But when I try to run it, it gives me the following error message:

Error Code: 0xC0150002 : The application failed to initialize properly. Click on Ok to terminate the application

I tried the same program on VS2005, VS.net 2003 and VS 2008. All of them compile the program without any errors but give the same error message. Surprisingly the code compiles and also runs on a different system in our lab.

The OS on my system is WinXP SP3 (Build 2600).
#include "stdafx.h"
#include "cxtypes.h"
#include "cv.h"
#include "highgui.h"
#include "cvaux.h"
#include "cxmisc.h"
void main()
		IplImage *originalImage = cvLoadImage("D:\\Blurry_Detection\\Fujinon\\mayo_test_video\\2.EP\\clear_image\\01378.jpg",-1);
		IplImage *grayScaleImage = cvCreateImage(cvSize(701,468),8,1);
		IplImage *edgeImage = cvCreateImage(cvSize(701,468), 8, 1);
		cvCvtColor(originalImage, grayScaleImage, CV_BGR2GRAY);
		cvSobel(grayScaleImage, edgeImage, 1, 0, 1);
		cvShowImage("EdgeImage", edgeImage);

Open in new window

Question by:imperialguy

Author Comment

ID: 23678024
.NET Framework Version 2.0 SP2 is already installed on my system. When I am trying to uninstall it in order to re-install .NET Framework Version 2.0, I get an error message saying that I cannot uninstall .net framework v2.0 SP2 because other applications are dependent on it. I am attaching a screen shot of different .net frameworks that got installed when I installed my Windows XP SP3. I am also attaching a screen shot of what happens when I try to remove .net framework 2.0 SP2 in order to install .net framework 2.0.
LVL 27

Expert Comment

ID: 23678781
See if this tool will help you>
Removal tool to fix .NET Framework install failures:
See if this tool will help you>
Removal tool to fix .NET Framework install failures:
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

LVL 27

Expert Comment

ID: 23678829

Accepted Solution

imperialguy earned 0 total points
ID: 23740313
installing microsoft vc++ 2005 redistributable has solved the problem.

LVL 32

Expert Comment

ID: 33605649
Just taking a WAG at what could have caused the previous install of the vc++ 2005 redistributable not to work well with your application - possibly, on the previous installation, there may have been some application running (or service) that caused the installation to almost be correct. Just a guess.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

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

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…
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…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

810 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