<?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 in DebenuPDFLibrary?</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 in DebenuPDFLibrary?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 07 Mar 2026 08:42:33 +0000</pubDate>
  <lastBuildDate>Tue, 20 Feb 2024 19:54:32 +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=3364</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 in DebenuPDFLibrary? : Hi Dan :) How to free memory you...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post16362.html#16362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3364<br /><strong>Posted:</strong> 20 Feb 24 at 7:54PM<br /><br />Hi Dan :) <br><br>How to free memory you can read here:<br>https://www.oreilly.com/library/view/delphi-in-a/1565926595/re116.html<br>Or you can try Google with "FreeMem Delphi".<br>Using the QuickPDF-functions you can always free memory like below:<br><br>Hint 1:<br><br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; QP := TDebenuPDFLibrary1822.Create;<br>&nbsp;&nbsp;&nbsp; try<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(xFileName, '');<br>//&nbsp;&nbsp;&nbsp; . . .<br>&nbsp;&nbsp;&nbsp; finally<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free; // &lt;---<br>//&nbsp;&nbsp;&nbsp; . . .<br>&nbsp;&nbsp;&nbsp; end;<br>&nbsp; except<br>&nbsp;&nbsp;&nbsp; QP.Free; // &lt;---<br>//&nbsp; . . . <br>&nbsp; end;<br><br>Hint 2:<br><br>function Get...;<br>var<br>&nbsp; Stream: TMemoryStream;<br>//. . .<br>begin<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; Stream := TMemoryStream.Create;<br>//&nbsp; . . .<br>&nbsp; finally<br>&nbsp;&nbsp;&nbsp; Stream.Free; // &lt;---<br>&nbsp; end;<br>end;<br><br>]]>
   </description>
   <pubDate>Tue, 20 Feb 2024 19:54:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post16362.html#16362</guid>
  </item> 
  <item>
   <title><![CDATA[Memory Leak in DebenuPDFLibrary? : Dear Ingo, I also received an...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post16355.html#16355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3229">dky</a><br /><strong>Subject:</strong> 3364<br /><strong>Posted:</strong> 17 Jan 24 at 4:01PM<br /><br />Dear Ingo,<div>&nbsp; &nbsp;I also received an error message "Out of memory while expanding memory Stream" after calling RenderPageToFile() continuously to extract more than about 10 pages from PDF pages to TIF image.<br>What can I do ? I can't find release function to release memory after each extraction.<div>Thanks you.</div></div>]]>
   </description>
   <pubDate>Wed, 17 Jan 2024 16:01:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post16355.html#16355</guid>
  </item> 
  <item>
   <title><![CDATA[Memory Leak in DebenuPDFLibrary? : I also received an error message...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post16354.html#16354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3229">dky</a><br /><strong>Subject:</strong> 3364<br /><strong>Posted:</strong> 17 Jan 24 at 3:59PM<br /><br />I also received an error message "Out of memory while expanding memory Stream" after calling RenderPageToFile() continuously to extract more than about 10 pages from PDF pages to TIF image.<br>What can I do ? I can't find release function to release memory after each extraction.<div>Thanks you.</div>]]>
   </description>
   <pubDate>Wed, 17 Jan 2024 15:59:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post16354.html#16354</guid>
  </item> 
  <item>
   <title><![CDATA[Memory Leak in DebenuPDFLibrary? : Hi RM,perhaps it&amp;#039;s better...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post13368.html#13368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3364<br /><strong>Posted:</strong> 07 Aug 16 at 7:48PM<br /><br />Hi RM,<div><br></div><div>perhaps it's better to use the DARender...functions.</div><div>Or the RenderToStream... ToString... and the save at the end:</div><div>http://www.debenu.com/docs/pdf_library_reference/RenderingAndPrinting.php</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Sun, 07 Aug 2016 19:48:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post13368.html#13368</guid>
  </item> 
  <item>
   <title><![CDATA[Memory Leak in DebenuPDFLibrary? :  Hello good people,I have a pdf...]]></title>
   <link>http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post13367.html#13367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2891">rmbarbosa</a><br /><strong>Subject:</strong> 3364<br /><strong>Posted:</strong> 05 Aug 16 at 3:53AM<br /><br />Hello good people,<div>&nbsp;</div><div>I have a pdf file with 200 pages or more.</div><div>I'm extracting/rendering each page as a&nbsp;TIFF file.</div><div>The problema is when using the code below the heap memory&nbsp;just gets bigger and bigger and eventually throws&nbsp;an out of memory exception.</div><div>&nbsp;</div><div>---- sample code---</div><div><font color="#0000ff" face="Courier New, Courier, mono"><em>PdfLib.LoadFromFile(filename, null);<br>var documentId = PdfLib.SelectedDocument();<br>var pageCount = PdfLib.PageCount();<br>for(int i=0;i&lt;pageCount;i++)<br>{<br>&nbsp;PdfLib.SelectPage(i);<br>&nbsp;<br>&nbsp;var tempFileName="....."; // custom filename<br>&nbsp;<br>&nbsp;<font color="#006633">// 7 = TIFF (LZW) output<br></font>&nbsp;PdfLib.RenderPageToFile(300, i, 7, tempFileName);<br>}</em></font></div><div>-----</div><div>&nbsp;</div><div>each time the RenderPageToFile is called&nbsp;the memory increases 2MB and i dont know of a way to release it other than unload the document and reload it again (for each&nbsp;x pages for example)&nbsp;wich is not a very elegante way of doing this.</div><div>&nbsp;</div><div>What i'm i missing? Is it&nbsp;a bug? or my pseudo-code is wrong?</div><div>&nbsp;</div><div>Im using the 32bit dll .net version and c# with&nbsp;DebenuPDFLibraryDLL1014 but i've tried with the latest version and the behaviour is exactly the same.</div><div>&nbsp;</div><div>any help?</div><div>&nbsp;</div><div>&nbsp;</div><span style="font-size:10px"><br /><br />Edited by rmbarbosa - 05 Aug 16 at 3:58AM</span>]]>
   </description>
   <pubDate>Fri, 05 Aug 2016 03:53:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memory-leak-in-debenupdflibrary_topic3364_post13367.html#13367</guid>
  </item> 
 </channel>
</rss>