<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[BUG] Crash when trying to save a configuration file - Allegro 5.0.9</title>
		<link>http://www.allegro.cc/forums/view/612377</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 08 Apr 2013 05:37:03 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,</p><p>I am having a trouble when i try to save a simple configuration file using Allegro <br />5.0.9. <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" />  When the program call the al_save_config_file() routine, the entire application crashes! (yes, i debugged it).</p><p>I wrote a very small program as a example and i putted it in attachment (ConfigFiles.cpp). I tested it and it still crashes when i run <img src="http://www.allegro.cc/forums/smileys/cry.gif" alt=":&#39;(" /></p><p>I´m using MinGW 4.7.1 and the correct Allegro binaries for this version.</p><p>Someone could help me? <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (JeffSturmann)</author>
		<pubDate>Sun, 07 Apr 2013 21:59:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to initialize PhysFS using <span class="source-code">PHYSFS_init</span>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 08 Apr 2013 03:13:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i&#39;m initializing physfs using al_set_physfs_file_interface() and i could not find the PHYSFS_init() routine <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /> .  </p><p>I tried to run the program without the PhysFS file interface and it worked fine!<br />How i could solve this problem with the PhysFS? (i will use .zip files in my project, so i will need it)</p><p>Thanks in advance <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (JeffSturmann)</author>
		<pubDate>Mon, 08 Apr 2013 04:35:19 +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/612377/980209#target">JeffSturmann</a> said:</div><div class="quote"><p> i&#39;m initializing physfs using al_set_physfs_file_interface()</p></div></div><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_set_physfs_file_interface"><span class="a">al_set_physfs_file_interface</span></a></span> does not initialize PhysFS, I don&#39;t know why you would think that. It only sets up Allegro file functions to use PhysFS functions instead of the ones from C standard library</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> i could not find the PHYSFS_init() routine</p></div></div><p>Where did you look? It&#39;s a PhysFS function, not an Allegro function. You&#39;ll need to include the physfs.h header to get it to work. In general, look at ex_physfs.c example for an example of how to use it with Allegro.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 08 Apr 2013 05:37:03 +0000</pubDate>
	</item>
</rss>
