Mason Wheeler
Mason Wheeler

Reputation: 84650

What does "the application failed to initialize properly" mean?

I just got a bug report from someone running an app I wrote under Windows XP. He says it won't start up.

The application failed to initialize properly (0xc0150002). Click on OK to terminate the application.

It works fine at my end, (under Windows 7,) and I don't have any Win7- or Vista-specific stuff in the program, so it should work on XP too. How do I go about tracking this down and debugging it?

Upvotes: 3

Views: 5440

Answers (5)

Joey
Joey

Reputation: 1

it's a .NET thing, you must download Microsoft .NET 3.5 I think, I had the same problem a while ago, same message "(0xc0150002)", i installed it and the program worked. hope this helps.

Upvotes: 0

Chris Thornton
Chris Thornton

Reputation: 15817

Maybe a service pack issue? Looks like Microsoft ran into this with an Office update on unpatched XP. I expect it would also apply to broken service packs, or otherwise botched systems. I'd also make sure that the MD5 Sum matches between your version of your app and his, as he may have a corrupt executable.

Upvotes: 0

skamradt
skamradt

Reputation: 15548

I've generally seen this error when there is a DLL missing or out of date which is required by your program (or even a component that you are using). Using dependency walker may help identify the DLL that you didn't know you were using.

Also if you are using any managed code, make sure that the customer has the latest version of the .net framework installed.

If you can get the customer to run a belarc audit report, the final section of that report lists all installed software and drivers, which can be very helpful in identifying what is installed that might be conflicting.

Upvotes: 5

Chris Dodd
Chris Dodd

Reputation: 126448

The solution when I asked this question was to use Process Monitor. More specifically, you should have the person seeing the error run it and send you the log.

Upvotes: 1

Jonas B
Jonas B

Reputation: 2391

Perhaps your application is compiled in x64 and he's running a 32-bit OS? It's the usual cause for this in my personal experience.

edit: it can also be the lack of shared components such as .NET, DirectX or similar

Upvotes: 0

Related Questions