<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Runtime error</title>
		<link>http://www.allegro.cc/forums/view/592661</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 14 Aug 2007 23:43:40 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello folks,</p><p>It seems that whenever I try to run any Allegro program, I get the following error:</p><p>The application failed to initalize properly (0xc0150002). Click on OK to terminate the application.</p><p>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?</p><p>Thanks for any help.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (keriostar)</author>
		<pubDate>Wed, 08 Aug 2007 21:58:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>After Googling 0xc0150002, it looks like the common thread is that a DLL is, in fact, missing.  Is the Allegro program you&#39;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&#39;re compiling yourself, where are your allegro DLLs located?  Mine are under C:\Windows\System32 for my WinXP machine.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (TeamTerradactyl)</author>
		<pubDate>Wed, 08 Aug 2007 22:11:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>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.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (keriostar)</author>
		<pubDate>Wed, 08 Aug 2007 22:17:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are you linking against ONLY Allegro, or does the program require other dependencies?  Something like OpenGL, Lua, Fmod/Dumb, etc. ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (TeamTerradactyl)</author>
		<pubDate>Wed, 08 Aug 2007 22:23:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Definitely only Allegro--I wrote a very simple ~20-line program to test Allegro, linked with alleg.lib, and got the error.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (keriostar)</author>
		<pubDate>Wed, 08 Aug 2007 22:30:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If it&#39;s only that long, post the code here, as well as your compiler options.</p><p>My most basic options (on Windows, not Mac or Linux) are:
</p><div class="source-code snippet"><div class="inner"><pre>  g<span class="k3">+</span><span class="k3">+</span> <span class="k3">-</span>g <span class="k3">-</span>O0 <span class="k3">-</span>W <span class="k3">-</span>Wall <span class="k3">-</span>c file1.cpp <span class="k3">-</span>o file1.o
  g<span class="k3">+</span><span class="k3">+</span> <span class="k3">-</span>g <span class="k3">-</span>O0 <span class="k3">-</span>W <span class="k3">-</span>Wall <span class="k3">-</span>c file2.cpp <span class="k3">-</span>o file2.o
  ...

  g<span class="k3">+</span><span class="k3">+</span> <span class="k3">-</span>g <span class="k3">-</span>O0 <span class="k3">-</span>W <span class="k3">-</span>Wall file1.o file2.o <span class="k2">(</span>...<span class="k2">)</span> <span class="k3">-</span>lalld <span class="k3">-</span>o theFile.exe
</pre></div></div><p>

Of course, that&#39;s the debugging version, and you&#39;d want to change the optimization flag and allegro library to non-debugging, but this way, you can check against GDB.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (TeamTerradactyl)</author>
		<pubDate>Wed, 08 Aug 2007 23:19:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This sounds like the .manifest thing that comes up if you use MSVC8. I&#39;m not sure what the answer is but try searching google/your docs for Manifest files. I think Matthew has solved this problem already.</p><p>Peter
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Fri, 10 Aug 2007 02:46:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If using VC++ Express (or MSVC8): <a href="http://wiki.allegro.cc/Visual_C%2B%2B_Express_2005#Deployment">http://wiki.allegro.cc/Visual_C%2B%2B_Express_2005#Deployment</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 10 Aug 2007 02:49:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah. I&#39;m getting the same error.</p><p>I&#39;ve followed all steps in wiki.allegro and then with the site Matthew just sent.<br /><span class="ref"><sup>[<a href="#">1</a>]</sup></span> And the problem persist.</p><p>I&#39;ve checked all DLLs, and all linking library.</p><p>Oh! And i&#39;ve Platform SDK and DirectX SDK installed. Do they have anything to do with this error?</p><p>thanks!  <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p><div class="ref-block"><h2>References</h2><ol><li><a href="http://wiki.allegro.cc/Visual_C%2B%2B_Express_2005#Deployment">http://wiki.allegro.cc/Visual_C%2B%2B_Express_2005#Deployment</a></li></ol></div></div>]]>
		</description>
		<author>no-reply@allegro.cc (Celso Dantas)</author>
		<pubDate>Tue, 14 Aug 2007 23:43:40 +0000</pubDate>
	</item>
</rss>
