<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>&quot;screen&quot; makes my programs crash</title>
		<link>http://www.allegro.cc/forums/view/591830</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 10 Jun 2007 18:02:58 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I use the Dev-C++ compiler, but recently I moved all the files onto another partition, and ever since, my programs crash when they encounter the &quot;screen&quot; bitmap. I have tested this a number of times. Even programs that were working fine, if I altered them slightly, they would crash when I ran them.</p><p>An example:</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#include &lt;allegro.h&gt;</span>

<span class="k1">int</span> main <span class="k2">(</span><span class="k2">)</span>
<span class="k2">{</span>
 <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a> <span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
 <a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a> <span class="k2">(</span>GFX_AUTODETECT_WINDOWED, <span class="n">250</span>, <span class="n">100</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
 
 <a href="http://www.allegro.cc/manual/textprintf_ex" target="_blank"><span class="a">textprintf_ex</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <a href="http://www.allegro.cc/manual/font" target="_blank"><span class="a">font</span></a>, <span class="n">0</span>, <span class="n">0</span>, <a href="http://www.allegro.cc/manual/makecol" target="_blank"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span>, <span class="n">0</span>, <span class="s">"Hello World!"</span><span class="k2">)</span><span class="k2">;</span>
 
 <a href="http://www.allegro.cc/manual/allegro_exit" target="_blank"><span class="a">allegro_exit</span></a> <span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
 <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span>
<span class="k2">}</span><a href="http://www.allegro.cc/manual/END_OF_MAIN" target="_blank"><span class="a">END_OF_MAIN</span></a> <span class="k2">(</span><span class="k2">)</span>
</pre></div></div><p>

This compiles perfectly, but crashes when I run it.<br />P.S. It is definately something wrong with the &quot;screen&quot; bitmap because I have tested it against several of my programs.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Zanmoto)</author>
		<pubDate>Sun, 10 Jun 2007 17:39:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="http://www.allegro.cc/forums/thread/591827">Don&#39;t double post</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sun, 10 Jun 2007 17:42:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Did you <i>forget</i> that you posted about this like four hours ago?</p><p><b>Please do not double post</b>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jonatan Hedborg)</author>
		<pubDate>Sun, 10 Jun 2007 17:42:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah, but no-one seemed to be helping me so I figured I&#39;d give it one last try, since I only ask questions once every so often.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Zanmoto)</author>
		<pubDate>Sun, 10 Jun 2007 17:46:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Uhm, this is a <i>forum</i>, not IRC. You may have to wait at least 12 hours to get an answer. Now you have pretty much erased that chance though.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jonatan Hedborg)</author>
		<pubDate>Sun, 10 Jun 2007 17:48:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Yeah, but no-one seemed to be helping me so I figured I&#39;d give it one last try, since I only ask questions once every so often.
</p></div></div><p>

You got good advice in that thread which you ignored. Read it again.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sun, 10 Jun 2007 17:49:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Geez, I am sorry, I don&#39;t do forums that often. I usually try to figure stuff out myself, but this has just been bugging me for days now.</p><p>Edit: I didn&#39;t ignore it, I corrected my code in the third post. If it was as easy as that I would have figured it out ages ago.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Zanmoto)</author>
		<pubDate>Sun, 10 Jun 2007 17:50:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Nope, you didn&#39;t. Check the return values. They are there for a reason.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (spellcaster)</author>
		<pubDate>Sun, 10 Jun 2007 18:02:58 +0000</pubDate>
	</item>
</rss>
