<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>show_mouse(...) error?</title>
		<link>http://www.allegro.cc/forums/view/588765</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 27 Nov 2006 23:31:45 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok...I was working on a project from someone else and noticed it kept giving an error when I exited the program...I couldn&#39;t trace the error to any code other than allegro&#39;s. I started playing with the code and found this:
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/show_mouse" target="_blank"><span class="a">show_mouse</span></a><span class="k2">(</span>buff<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
in the beginning of the code. I noticed that if I commented out that line, all is well. I also figured out that if you use:
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/show_mouse" target="_blank"><span class="a">show_mouse</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
before exiting, this also solves the problem. I guess my question is:</p><p><b>Is this operation intended or is this an error in the allegro code?</b> I&#39;ve not really dealt with the mouse routines too much, so I don&#39;t really know....the allegro docs are not clear on this topic.</p><p>Edit:<br />Allegro version 4.2</p><p>Thanks,<br />Donald <img src="http://www.allegro.cc/forums/smileys/cool.gif" alt="8-)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Don Freeman)</author>
		<pubDate>Mon, 27 Nov 2006 20:33:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to make sure you&#39;re not showing the mouse on a bitmap as it&#39;s destroyed. That said, using show_mouse on anything other than the screen is just asking for trouble.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Mon, 27 Nov 2006 20:56:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s what I thought...I was just looking over someone elses work and noticed that...never used show_mouse() like that myself, so I never had that problem before. Maybe the docs should warn against this so others don&#39;t do the same thing...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Don Freeman)</author>
		<pubDate>Mon, 27 Nov 2006 23:31:45 +0000</pubDate>
	</item>
</rss>
