<?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="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Leaking GDI objects</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Leaking GDI objects]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 21:02:52 +0000</pubDate>
  <lastBuildDate>Thu, 26 Mar 2009 11:08:37 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13777</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Leaking GDI objects : We have now fixed this issue by...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13777&amp;PID=47188&amp;title=leaking-gdi-objects#47188</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5085">PhilM</a><br /><strong>Subject:</strong> 13777<br /><strong>Posted:</strong> 26 March 2009 at 11:08am<br /><br />We have now fixed this issue by using the FRAME versions of these objects. Must be a problem with the way Openedge/Progress loads and destroys things.]]>
   </description>
   <pubDate>Thu, 26 Mar 2009 11:08:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13777&amp;PID=47188&amp;title=leaking-gdi-objects#47188</guid>
  </item> 
  <item>
   <title><![CDATA[Leaking GDI objects : When we load the command bars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13777&amp;PID=47042&amp;title=leaking-gdi-objects#47042</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5085">PhilM</a><br /><strong>Subject:</strong> 13777<br /><strong>Posted:</strong> 24 March 2009 at 11:24am<br /><br />When we load the command bars object without doing anything with&nbsp;it, it creates 21 GDI font objects and when deleted only clears up 5 of them so it is leaking 16 GDI font objects every time it is loaded and deleted again. Probably another problem with Openedge but thought I would mention it anyway, in case anbody knows an answer. Here is the Openedge code which causes this leak:-<DIV>&nbsp;</DIV><DIV><FONT color=#990000>DEFINE VAR vcmdbar AS HANDLE NO-UNDO.&nbsp;&nbsp; <BR>DEFINE VAR chcmdbar AS COM-HANDLE NO-UNDO.<BR>DEFINE VAR stat AS LOG NO-UNDO.</FONT></DIV><DIV><FONT color=#990000>DEFINE FRAME vframe.<BR>&nbsp;&nbsp; <BR>create control-frame vCmdBar assign<BR>&nbsp;&nbsp;&nbsp; frame = FRAME vFrame:HANDLE<BR>&nbsp;&nbsp;&nbsp; name = "CommandBars":u<BR>&nbsp;&nbsp;&nbsp; HEIGHT-PIXELS = 1<BR>&nbsp;&nbsp;&nbsp; WIDTH-PIXELS = 1<BR>&nbsp;&nbsp;&nbsp; hidden = NO<BR>&nbsp;&nbsp;&nbsp; sensitive = YES.</FONT></DIV><DIV><FONT color=#990000>&nbsp;&nbsp;&nbsp; <BR>assign&nbsp; <BR>&nbsp;&nbsp;&nbsp; chCmdBar = vCmdBar:com-handle<BR>&nbsp;&nbsp;&nbsp; stat&nbsp;&nbsp;&nbsp;&nbsp; = chCmdBar:LoadControls( "cmdbar.wrx" , "CommandBars":u).</FONT></DIV><DIV><FONT color=#990000>DELETE WIDGET vcmdbar.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Also if you set the visual theme to office2003 it will leak an extra 2 GDI bitmaps and 2 GDI DC's.</DIV><DIV>&nbsp;</DIV><DIV>This also occurs with the Docking pane object but that only leaks 12 GDI font objects.</DIV><DIV>&nbsp;</DIV><DIV>If anybody has any solutions to this it would a great help as this means our screen will use up the GDI resources if it is&nbsp;opened a lot of times, OK the limit per process is 10000 on my PC so with 1 command bar and 2 docking panes I only leak 40 objects each time which means I would have to run it 250 times in one session&nbsp;before it will crash but this isn't very good practice.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 11:24:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13777&amp;PID=47042&amp;title=leaking-gdi-objects#47042</guid>
  </item> 
 </channel>
</rss>