<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>allegro_image-5.2.dll - Cannot find or open the PDB file</title>
		<link>http://www.allegro.cc/forums/view/618103</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 28 Apr 2020 04:44:00 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Visual Studio Community 2015 + Allegro 5.2.5.1</p><p>Is there any way to load debugging information for allegro_image-5.2.dll so I can find a source code / line number where al_load_bitmap() is generating an exception?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (thebignic)</author>
		<pubDate>Tue, 28 Apr 2020 03:20:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m not using VS and don&#39;t regularly do debugging deeper than the external interface of Allegro.  But, I bet you $100 your problem is because either:</p><ol><li><p>The image addon is not initialized.  <span class="source-code"><a href="http://www.allegro.cc/manual/al_init_image_addon"><span class="a">al_init_image_addon</span></a><span class="k2">(</span><span class="k2">)</span></span> or <span class="source-code">al_is_image_addon_initialized<span class="k2">(</span><span class="k2">)</span></span>.
</p></li><li><p>Allegro is not initialized. <span class="source-code"><a href="http://www.allegro.cc/manual/al_init"><span class="a">al_init</span></a><span class="k2">(</span><span class="k2">)</span></span> or <span class="source-code"><a href="http://www.allegro.cc/manual/al_is_system_installed"><span class="a">al_is_system_installed</span></a><span class="k2">(</span><span class="k2">)</span></span>.
</p></li><li><p>The path of the image you are loading is not working as you might expect.</p></li></ol><p>It&#39;s likely the last one, in my experience.  To fix:
</p><ol><li><p>You might try an absolute path to the image file to test it out.  Absolute path always works (but is not portable or flexible).
</p></li><li><p>The relative image path you are providing to your <span class="source-code"><a href="http://www.allegro.cc/manual/al_load_bitmap"><span class="a">al_load_bitmap</span></a></span> call is not correct.  In your program, you should set the current working directory to the location of the executable during setup, and make sure your image file is in the same location relative to the executable.</p></li></ol><p>To set the programs working path to the location of the executable:
</p><div class="source-code snippet"><div class="inner"><pre>  ALLEGRO_PATH <span class="k3">*</span>path<span class="k2">;</span>
  path <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_get_standard_path"><span class="a">al_get_standard_path</span></a><span class="k2">(</span>ALLEGRO_RESOURCES_PATH<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/al_change_directory"><span class="a">al_change_directory</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/al_path_cstr"><span class="a">al_path_cstr</span></a><span class="k2">(</span>path,ALLEGRO_NATIVE_PATH_SEP<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Tue, 28 Apr 2020 03:36:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>al_is_image_addon_initialized() doesnt appear to be a valid function?</p><p>It&#39;s not a path issue, and I&#39;m logging the path to console, and its correct. </p><p>Also it seems intermittent. It SEEMED to be related to Steam Overlay 99% of the time, and disabling it used to be a fine workaround for about 2 years, but now it happens regardless if the overlay is enabled or not. (and typically only on laptops/shared memory systems...)</p><p>I don&#39;t know any other way to proceed, than to see EXACTLY what the exception is in al_load_bitmap() ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (thebignic)</author>
		<pubDate>Tue, 28 Apr 2020 04:05:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/618103/1045716#target">thebignic</a> said:</div><div class="quote"><p> al_is_image_addon_initialized() doesnt appear to be a valid function?</p></div></div><p>Ahhhh.  It&#39;s <a href="https://liballeg.org/a5docs/trunk/image.html#al_is_image_addon_initialized">new to the latest release 5.2.6</a>.  You have 5.2.5.1.  My oversight, sorry.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> I don&#39;t know any other way to proceed, than to see EXACTLY what the exception is in al_load_bitmap() ?</p></div></div><p>Interesting.</p><p>Unfortunately, I have a very limited experience with the debug version, or a debugger in general.  I would expect that the library you are trying to find is called <span class="source-code">allegro_image-5.2-debug.dll</span>. I don&#39;t know how you installed the Allegro version on your computer. It may or may not include it, or if you built it, you may have to indicate to the build system that you also want to build debug libraries as well.  Again, really fuzzy on this, you may also need to set certain flags when building.</p><p>I found <a href="https://github.com/liballeg/allegro_wiki/wiki/Debugging-and-logging-with-A5">this</a>. Hopefully it&#39;s helpful.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Tue, 28 Apr 2020 04:31:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes, are you linking to the debug versions of the libraries? Are you running in debug mode?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DanielH)</author>
		<pubDate>Tue, 28 Apr 2020 04:41:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>used nuget.</p><p>lost too many hours trying to build allegro over the years :/</p><p>Thanks anyway</p><p>EDIT:<br />Linking to &quot;Dynamic Debug&quot; might be loading the PDB but it doesn&#39;t crash and no exception seems to be thrown.. the call just fails.</p><p>Using Monolithic Static throws exception and crashes...</p><p>EDIT 2:<br />Seems like its still intermittent, but finally got &quot;lock was nullptr&quot; </p><p>Don&#39;t have the .c files handy but at least its pointing to some now...</p><p>Thanks</p><p>EDIT 3:<br />yah, none of that helped - no reason why the bitmap couldn&#39;t be locked if its new (not locked already) so <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><img src="http://www.allegro.cc/forums/smileys/cry.gif" alt=":&#39;(" /></p><p>if Steam Client is running, it fails. otherwise, works like a dream. regardless if overlay is on... how bizzare.  One wonders wtf their shader caching thing does? Its disabled but......
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (thebignic)</author>
		<pubDate>Tue, 28 Apr 2020 04:44:00 +0000</pubDate>
	</item>
</rss>
