<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro 5.0.4 crash if mixing resize/create_display</title>
		<link>http://www.allegro.cc/forums/view/608653</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 23 Oct 2011 21:10:55 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The following code crashes somewhere in al_create_display on a call to malloc:</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/ALLEGRO_DISPLAY"><span class="a">ALLEGRO_DISPLAY</span></a> <span class="k3">*</span>d <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_create_display"><span class="a">al_create_display</span></a><span class="k2">(</span> <span class="n">800</span>, <span class="n">600</span> <span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_resize_display"><span class="a">al_resize_display</span></a><span class="k2">(</span> d, <span class="n">1024</span>, <span class="n">768</span> <span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_destroy_display"><span class="a">al_destroy_display</span></a><span class="k2">(</span> d <span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_set_new_display_flags"><span class="a">al_set_new_display_flags</span></a><span class="k2">(</span> ALLEGRO_FULLSCREEN <span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_create_display"><span class="a">al_create_display</span></a><span class="k2">(</span> <span class="n">1920</span>, <span class="n">1080</span> <span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

I understand that calling resize_display and then create_display is pointless, but still it shows a possible bug somewhere. At worst, this should be documented.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Max Savenkov)</author>
		<pubDate>Sun, 23 Oct 2011 20:32:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I can&#39;t reproduce the crash on my machine. Are you sure the crash is not caused because you are not assigning the second display to a variable?.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Sun, 23 Oct 2011 21:02:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes, I&#39;m sure. It happens before the second call to al_create_display is complete and therefore assignment/non-assignment could not have an effect in any way.</p><p>Also, this cropped up in a non-example program, where assignment was done.</p><p>I&#39;ll add some specifics about my setup then:</p><p>OS: Windows 7 64-Bit<br />GPU: GeForce 560 Ti<br />Driver: 280.26 (8.17.12.8026)</p><p>Mode: ALLEGRO_DIRECT3D
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Max Savenkov)</author>
		<pubDate>Sun, 23 Oct 2011 21:10:55 +0000</pubDate>
	</item>
</rss>
