Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Runtime error

This thread is locked; no one can reply to it. rss feed Print
Runtime error
keriostar
Member #8,525
April 2007

Hello folks,

It seems that whenever I try to run any Allegro program, I get the following error:

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

Someone suggested that it might be a DLL-related problem, but I do have alleg42.dll, alld42.dll, and allp42.dll in the appropriate directory. What might be causing this, then?

Thanks for any help.

TeamTerradactyl
Member #7,733
September 2006
avatar

After Googling 0xc0150002, it looks like the common thread is that a DLL is, in fact, missing. Is the Allegro program you're trying to run something you compiled yourself, or downloaded from someone else? If someone else, they may have compiled against 4.0 or 4.1, instead of 4.2. That might possibly fix the problem. Or, if you're compiling yourself, where are your allegro DLLs located? Mine are under C:\Windows\System32 for my WinXP machine.

keriostar
Member #8,525
April 2007

I compiled it myself, trying first a very simple example program, then another program which had definitely worked in the past (on another machine). The relevant DLL files are indeed in c:\windows\system32. I also tried putting them in the same directory as the program, just in case--no dice.

TeamTerradactyl
Member #7,733
September 2006
avatar

Are you linking against ONLY Allegro, or does the program require other dependencies? Something like OpenGL, Lua, Fmod/Dumb, etc. ?

keriostar
Member #8,525
April 2007

Definitely only Allegro--I wrote a very simple ~20-line program to test Allegro, linked with alleg.lib, and got the error.

TeamTerradactyl
Member #7,733
September 2006
avatar

If it's only that long, post the code here, as well as your compiler options.

My most basic options (on Windows, not Mac or Linux) are:

  g++ -g -O0 -W -Wall -c file1.cpp -o file1.o
  g++ -g -O0 -W -Wall -c file2.cpp -o file2.o
  ...

  g++ -g -O0 -W -Wall file1.o file2.o (...) -lalld -o theFile.exe

Of course, that's the debugging version, and you'd want to change the optimization flag and allegro library to non-debugging, but this way, you can check against GDB.

Peter Hull
Member #1,136
March 2001

This sounds like the .manifest thing that comes up if you use MSVC8. I'm not sure what the answer is but try searching google/your docs for Manifest files. I think Matthew has solved this problem already.

Peter

Matthew Leverton
Supreme Loser
January 1999
avatar

Celso Dantas
Member #8,925
August 2007

Yeah. I'm getting the same error.

I've followed all steps in wiki.allegro and then with the site Matthew just sent.
[1] And the problem persist.

I've checked all DLLs, and all linking library.

Oh! And i've Platform SDK and DirectX SDK installed. Do they have anything to do with this error?

thanks! ???

Go to: