<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=382&amp;type=atom" />
	<updated>2009-08-24T08:40:16Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=382</id>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1472#p1472" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[Grisu]]></name>
				<uri>https://gprogs.com/profile.php?id=264</uri>
			</author>
			<updated>2009-08-24T08:40:16Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1472#p1472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1471#p1471" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-08-21T23:56:06Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1471#p1471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1470#p1470" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-08-21T00:50:15Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1470#p1470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1468#p1468" />
			<content type="html"><![CDATA[<p>I have to thank you. </p><p>Take all the time you need.</p>]]></content>
			<author>
				<name><![CDATA[Grisu]]></name>
				<uri>https://gprogs.com/profile.php?id=264</uri>
			</author>
			<updated>2009-08-19T11:41:02Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1468#p1468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1467#p1467" />
			<content type="html"><![CDATA[<p>thank you.&nbsp; that will help me troubleshoot.&nbsp; unforutnately i wont be able to look at this again for another 12 hours or so.&nbsp; will look at it as soon as i can.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-08-19T11:00:38Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1467#p1467</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1465#p1465" />
			<content type="html"><![CDATA[<p>Here&#039;s a quick example. </p><p>Just read out an image of a zip file constantly and the task mananger memory usage will go up like crazy while the GC Collector stays the same?</p><p>I have already posted that issue in the BMX bug forum. But no one could help so far.</p><p>If you have any idea or wild guess, please let me know.</p><div class="codebox"><pre><code>Framework brl.Jpgloader
Import brl.PNGloader
Import brl.Pixmap
Import gman.zipengine

SuperStrict 

Global MinMemUsage:Long=GCMemAlloced()
Global MaxMemUsage:Long=GCMemAlloced()
Global TempMemUsage:Long=0

While True &lt;&gt; False &#039; Endless loop!

Local ButtoIco_exit:TPixmap=LoadPixmap(&quot;zipe::skins\prp_red_win7.skn::prp_about.png&quot;)  &#039; Just an ordinary image file
TempMemUsage:Long=GCMemAlloced() 
If TempMemUsage &gt; MaxMemUsage Then MaxMemUsage=tempMemUsage

Print &quot;Min: &quot;+MinMemUsage
Print &quot;Max: &quot;+MaxMemUsage
Print &quot;&quot;
Delay (10) &#039; free a little CPU time

Wend
End</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grisu]]></name>
				<uri>https://gprogs.com/profile.php?id=264</uri>
			</author>
			<updated>2009-08-19T07:22:47Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1465#p1465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1463#p1463" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i didnt see anything right away that would be an issue.&nbsp; is it possible to whip up a bare-minimum example that i could run?</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-08-19T01:12:23Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1463#p1463</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Bug: ZIPE not freeing up memory / closing stream after usage?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1460#p1460" />
			<content type="html"><![CDATA[<p>Hi!</p><p>In my &quot;Pocket Radio Player&quot; I have a memory leak when I use the stream functions of your module a lot.<br />It also seems that the zip file is still &quot;locked&quot;, even when I already have opened another one.</p><p>Example line:<br />ButtoIco_stop:TIconstrip=LoadIconStrip(&quot;zipe::skins\&quot;+filename+&quot;::prp_stop.png&quot;)</p><p>Is there a way to force the wrapper to close the stream / zip file and free the memory allocated?<br />The bmx Garbage Collector doesn&#039;t help here at all.</p><p>Thanks.</p><p>Grisu</p>]]></content>
			<author>
				<name><![CDATA[Grisu]]></name>
				<uri>https://gprogs.com/profile.php?id=264</uri>
			</author>
			<updated>2009-08-18T18:11:50Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1460#p1460</id>
		</entry>
</feed>
