<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Glyph Keeper is memory hungry</title>
		<link>http://www.allegro.cc/forums/view/589910</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 06 Feb 2007 22:52:11 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am writing an Allegro program to use during a presentation. I&#39;m using Glyph Keeper because I want nice, huge fonts that people can actually read.</p><p>I looked at the task manager and noticed my program&#39;s memory usage was climbing steadily toward infinity. It still happened after reducing the main loop to this:
</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">while</span> <span class="k2">(</span><span class="k3">!</span><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_ESC<span class="k2">]</span><span class="k2">)</span>
<span class="k2">{</span>
  <a href="http://www.allegro.cc/manual/textout_centre_ex" target="_blank"><span class="a">textout_centre_ex</span></a><span class="k2">(</span>buffer, font1, <span class="s">"Project #1"</span>, <a href="http://www.allegro.cc/manual/SCREEN_W" target="_blank"><span class="a">SCREEN_W</span></a><span class="k3">/</span><span class="n">2</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">255</span>,<span class="n">255</span>,<span class="n">255</span><span class="k2">)</span>, <span class="k3">-</span><span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
<span class="k2">}</span>
</pre></div></div><p>

font1 is created by:
</p><div class="source-code snippet"><div class="inner"><pre>face <span class="k3">=</span> gk_load_face_from_file<span class="k2">(</span><span class="s">"c:/windows/fonts/arial.ttf"</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
rend <span class="k3">=</span> gk_create_renderer<span class="k2">(</span>face,<span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
font1 <span class="k3">=</span> gk_create_allegro_font<span class="k2">(</span>rend<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

When replacing font1 with the standard Allegro font, the problem goes away.</p><p>Is anyone else using the latest version (0.31) of Glyph Keeper and experiencing the same problem?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Mon, 05 Feb 2007 13:17:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks for report, Matthew! Can you post a complete program source that I can test? I am now working on version 0.32 so I am determined to fix it if it is a Glyph Keeper bug.</p><p>EDIT: OK, I can reproduce it! The fix should be ready soon. Thanks.</p><p>EDIT: Fixed now. I will upload the new version tomorrow.</p><p>EDIT: I uploaded <a href="http://kd.lab.nig.ac.jp/glyph-keeper/files.html">Glyph Keeper 0.32</a> with the fix! I also added support for full scale memory debugging for both Glyph Keeper and FreeType. I will post announcement after I update documentation. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kirr)</author>
		<pubDate>Tue, 06 Feb 2007 20:20:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ll try it later. If you don&#39;t hear from me, assume it corrected my problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Tue, 06 Feb 2007 22:52:11 +0000</pubDate>
	</item>
</rss>
