<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: gba2wsc Released</title>
	<link>http://liranuna.drunkencoders.com/gba2wsc-released/</link>
	<description>Just another console developper</description>
	<pubDate>Fri, 04 Jul 2008 19:12:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.1</generator>

	<item>
		<title>By: Peter</title>
		<link>http://liranuna.drunkencoders.com/gba2wsc-released/#comment-2331</link>
		<author>Peter</author>
		<pubDate>Sat, 23 Dec 2006 16:02:00 +0000</pubDate>
		<guid>http://liranuna.drunkencoders.com/gba2wsc-released/#comment-2331</guid>
					<description>Hi, just took a quick look at the code from gba2wsc. It looks like you don't free the allocated memory on the heap. Noticed that in fixMap() and fixPalette().

I would also open the input files in "rb" mode, rather than just "r". I remember in one of my applications I also used "r" to read binary files and it sometimes didn't work properly.

Best,
Peter</description>
		<content:encoded><![CDATA[<p>Hi, just took a quick look at the code from gba2wsc. It looks like you don&#8217;t free the allocated memory on the heap. Noticed that in fixMap() and fixPalette().</p>
<p>I would also open the input files in &#8220;rb&#8221; mode, rather than just &#8220;r&#8221;. I remember in one of my applications I also used &#8220;r&#8221; to read binary files and it sometimes didn&#8217;t work properly.</p>
<p>Best,<br />
Peter</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Strager Neds</title>
		<link>http://liranuna.drunkencoders.com/gba2wsc-released/#comment-2356</link>
		<author>Strager Neds</author>
		<pubDate>Tue, 26 Dec 2006 15:46:35 +0000</pubDate>
		<guid>http://liranuna.drunkencoders.com/gba2wsc-released/#comment-2356</guid>
					<description>Peter,
Having "b" in the second parameter of fopen tells DOS (and perhaps other systems) not to process newlines and other command characters at all.  Linux does not fiddle with such things, thus it is not required.  Since LiraNuna tests on a Linux system, he probably forgot to add this flag for compatibility.

Just thought you might want to know why you should add the binary flag in your fopen statements.

(BTW, LiraNuna, check your e-mail...!)</description>
		<content:encoded><![CDATA[<p>Peter,<br />
Having &#8220;b&#8221; in the second parameter of fopen tells DOS (and perhaps other systems) not to process newlines and other command characters at all.  Linux does not fiddle with such things, thus it is not required.  Since LiraNuna tests on a Linux system, he probably forgot to add this flag for compatibility.</p>
<p>Just thought you might want to know why you should add the binary flag in your fopen statements.</p>
<p>(BTW, LiraNuna, check your e-mail&#8230;!)</p>
]]></content:encoded>
				</item>
</channel>
</rss>
