<?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 : GetCanvasDc Cleanup</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 : GetCanvasDc Cleanup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 20:29:44 +0000</pubDate>
  <lastBuildDate>Thu, 08 Dec 2011 15:16:06 +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=1999</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[GetCanvasDc Cleanup : Great, thanks for the information...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8801.html#8801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 08 Dec 11 at 3:16PM<br /><br />Great, thanks for the information Andrew.]]>
   </description>
   <pubDate>Thu, 08 Dec 2011 15:16:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8801.html#8801</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDc Cleanup : As stated earlier these two calls...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8796.html#8796</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 08 Dec 11 at 1:10AM<br /><br />As stated earlier these two calls need to be paired. &nbsp;ie. &nbsp;Call one then the other and then the resources should be freed automatically.<div><br></div><div>If you only call CapturePage then there may be some memory that is not freed until the program is closed.</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Thu, 08 Dec 2011 01:10:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8796.html#8796</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDc Cleanup : Hi Andrew - any chance you could...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8762.html#8762</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 30 Nov 11 at 2:02PM<br /><br />Hi Andrew - any chance you could get back to me on this? Is there any cleanup required after calling CapturePage, or does calling DrawCapturedPage release the capture page handle?]]>
   </description>
   <pubDate>Wed, 30 Nov 2011 14:02:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8762.html#8762</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDc Cleanup : What about after calling CapturePage?...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8662.html#8662</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 09 Nov 11 at 11:42PM<br /><br />What about after calling CapturePage? Do we need to cleanup by calling anything? The document doesn't say, but I'm trying to track some memory leaks in my software, so I'm investigating every possibility (BTW, I'm using QPDF 7.26)<br><br>Thanks for any advice.<br>]]>
   </description>
   <pubDate>Wed, 09 Nov 2011 23:42:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8662.html#8662</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDc Cleanup : Thanks a lot Andrew, I will make...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8517.html#8517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 17 Oct 11 at 10:07PM<br /><br />Thanks a lot Andrew, I will make sure that LoadFromCanvasDC is called in my Class_Terminate event if I've previously called GetCanvasDC to ensure proper cleanup.<br>]]>
   </description>
   <pubDate>Mon, 17 Oct 2011 22:07:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8517.html#8517</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDc Cleanup : Looking at the QPL source code...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8516.html#8516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 17 Oct 11 at 3:09PM<br /><br />Looking at the QPL source code I see that a TMetaFile is actually created with the GetCanvasDC function and the DC from the Metafile is the return value. &nbsp;This TMetafile &nbsp;class is only released when LoadFromCanvasDC is called which then releases the DC.<div><br></div><div>It looks like these two calls must me called in pairs,&nbsp;GetCanvasDC &nbsp;to create the MetaFile and then cleanly release it when finished.</div>]]>
   </description>
   <pubDate>Mon, 17 Oct 2011 15:09:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8516.html#8516</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDc Cleanup : After getting a DC handle with...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8501.html#8501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 14 Oct 11 at 10:13PM<br /><br />After getting a DC handle with GetCanvasDC, do we have to call DeleteDC to cleanup, or does LoadFromCanvasDC handle cleanup? What if we call GetCanvasDc but for some reason, we do not subsequently call LoadFromCavasDc - would we have to call DeleteDC then? This is for Qpdf 7.26.<br><br>Thanks for any clarifications. <br>]]>
   </description>
   <pubDate>Fri, 14 Oct 2011 22:13:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-cleanup_topic1999_post8501.html#8501</guid>
  </item> 
 </channel>
</rss>