<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Memory leak?</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Memory leak?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 24 Jun 2026 15:43:59 +0000</pubDate>
  <lastBuildDate>Sun, 06 Feb 2011 20:27:37 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=1726</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Memory leak? : That&amp;#039;s probably the way to...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak_topic1726_post7561.html#7561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1526">hansmerkl</a><br /><strong>Subject:</strong> 1726<br /><strong>Posted:</strong> 06 Feb 11 at 8:27PM<br /><br />That's probably the way to go.]]>
   </description>
   <pubDate>Sun, 06 Feb 2011 20:27:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak_topic1726_post7561.html#7561</guid>
  </item> 
  <item>
   <title><![CDATA[Memory leak? : Hi!The DAFindPage-prob is already...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak_topic1726_post7559.html#7559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1726<br /><strong>Posted:</strong> 06 Feb 11 at 8:15PM<br /><br />Hi!<br><br>The DAFindPage-prob is already an older one and so i don't think that it will be fixed soon ;-)<br>But you can avoid the DA-functions.<br>Use the "normal" ones and with the current library version you won't have any disadvantages.<br><br>Cheers, Ingo<br>]]>
   </description>
   <pubDate>Sun, 06 Feb 2011 20:15:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak_topic1726_post7559.html#7559</guid>
  </item> 
  <item>
   <title><![CDATA[Memory leak? : It&amp;#039;s a good idea to close...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak_topic1726_post7557.html#7557</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1526">hansmerkl</a><br /><strong>Subject:</strong> 1726<br /><strong>Posted:</strong> 06 Feb 11 at 7:39PM<br /><br />It's a good idea to close to the file from time to time. I hope the performance won't suffer too much. <br><br>I hope QuickPDF are aware of the DAFindPage problem and will fix it soon.<br><br><br>]]>
   </description>
   <pubDate>Sun, 06 Feb 2011 19:39:27 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak_topic1726_post7557.html#7557</guid>
  </item> 
  <item>
   <title><![CDATA[Memory leak? :  Hi Hans!After DACloseFileThe...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak_topic1726_post7554.html#7554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1726<br /><strong>Posted:</strong> 06 Feb 11 at 12:29PM<br /><br />Hi Hans!<br><br>After DACloseFile<br>The "Free" should follow.<br>You can read here sometimes about memory-problems<br>as a result based on DAFindPage.<br><br>I've an old workaround to avoid this:<br>Using a counter like this (for a loop in a loop) ...<br><br>&nbsp;&nbsp;&n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&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br>// . . .<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free;<br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 06 Feb 11 at 12:30PM</span>]]>
   </description>
   <pubDate>Sun, 06 Feb 2011 12:29:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak_topic1726_post7554.html#7554</guid>
  </item> 
  <item>
   <title><![CDATA[Memory leak? : The following C# code runs out...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak_topic1726_post7551.html#7551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1526">hansmerkl</a><br /><strong>Subject:</strong> 1726<br /><strong>Posted:</strong> 05 Feb 11 at 10:22PM<br /><br />The following C# code runs out of memory with even medium sized files. After calling DACloseFile the memory gets released. Am I missing something that has to be released?<br><br><br>&nbsp;&nbsp;&nbsp; QuickPDFAX0723.PDFLibrary Lib = new QuickPDFAX0723.PDFLibrary();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Lib.UnlockKey("xxxx");<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; string fnIn = this.buttonEditPDF.Text;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int DocHandle = Lib.DAOpenFileReadOnly(fnIn, "");<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int PageCount = Lib.DAGetPageCount(DocHandle);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; PageCount; i++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int PageHandle = Lib.DAFindPage(DocHandle, i + 1);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int ImageListHandle = Lib.DAGetPageImageList(DocHandle, PageHandle);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int ImageCount = Lib.DAGetImageListCount(DocHandle, ImageListHandle);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int ii = 0; ii &lt; ImageCount; ii++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var ImageBuffer = Lib.DAGetImageDataToVariant(DocHandle, ImageListHandle, ii + 1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; byte&#091;&#093; b = ImageBuffer as byte&#091;&#093;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MessageBox.Show("Done");<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Lib.DACloseFile(DocHandle);<br>]]>
   </description>
   <pubDate>Sat, 05 Feb 2011 22:22:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak_topic1726_post7551.html#7551</guid>
  </item> 
 </channel>
</rss>