<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[A5] al_create_display crashes under Windows if resolution is not supported</title>
		<link>http://www.allegro.cc/forums/view/607885</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 21 Jul 2011 21:30:29 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Also, setting a bigger than desktop resolution succeeds, but the window is mostly out of the screen (I can only see the bottom right corner of it).</p><p>Setting a very big resolution (to force it failing) just crashes. According to the debugger, here&#39;s the problem:</p><div class="source-code"><div class="toolbar"><span class="name">d3d_disp.cpp</span><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 1976</span>   <a href="http://www.allegro.cc/manual/al_lock_mutex"><span class="a">al_lock_mutex</span></a><span class="k2">(</span>present_mutex<span class="k2">)</span><span class="k2">;</span>
<span class="number"> 1977</span>   display <span class="k3">=</span> d3d_create_display_locked<span class="k2">(</span>w, h<span class="k2">)</span><span class="k2">;</span>
<span class="number"> 1978</span>   win_display <span class="k3">=</span> <span class="k2">(</span>ALLEGRO_DISPLAY_WIN <span class="k3">*</span><span class="k2">)</span>display<span class="k2">;</span>
<span class="number"> 1979</span>   <a href="http://www.allegro.cc/manual/al_unlock_mutex"><span class="a">al_unlock_mutex</span></a><span class="k2">(</span>present_mutex<span class="k2">)</span><span class="k2">;</span>
<span class="number"> 1980</span>
<span class="number"> 1981</span>   s <span class="k3">=</span> display-&gt;extra_settings.settings<span class="k2">;</span>
</div></div><p>
It crashes at line 1981 (my birth year <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" />). The debugger shows that display = NULL.</p><p>There&#39;s one annoying thing: allegro keeps trying to create a window for like 30 seconds. The taskbar goes crazy showing an allegro window being created and destroyed, until the crash.</p><p>Using Allegro 5.0.3 (precompiled binaries from here).</p><p>Note: Maybe this has already been reported, my allegro.cc search-fu is pretty weak <img src="http://www.allegro.cc/forums/smileys/embarassed.gif" alt=":-[" /></p><p>[Edit]<br />I&#39;m pretty sure I selected allegro development subforum, but it seems I did not <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Oscar Giner)</author>
		<pubDate>Thu, 21 Jul 2011 14:25:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s definitely a bug in that it doesn&#39;t bother to check return values.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Thu, 21 Jul 2011 21:30:29 +0000</pubDate>
	</item>
</rss>
