<?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 : Mem leak relating to Populate call</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Mem leak relating to Populate call]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 21:43:18 +0000</pubDate>
  <lastBuildDate>Wed, 17 Feb 2010 16:15:34 +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=16217</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[Mem leak relating to Populate call : p.s. I&amp;#039;ve seen this on 14.0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16217&amp;PID=56872&amp;title=mem-leak-relating-to-populate-call#56872</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 16217<br /><strong>Posted:</strong> 17 February 2010 at 4:15pm<br /><br />p.s. I've seen this on 14.0 beta, and also 13.1.0 so it's been there for a while.]]>
   </description>
   <pubDate>Wed, 17 Feb 2010 16:15:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16217&amp;PID=56872&amp;title=mem-leak-relating-to-populate-call#56872</guid>
  </item> 
  <item>
   <title><![CDATA[Mem leak relating to Populate call : Hi all  We have an app that enumerates...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16217&amp;PID=56871&amp;title=mem-leak-relating-to-populate-call#56871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 16217<br /><strong>Posted:</strong> 17 February 2010 at 4:14pm<br /><br />Hi all<br /><br />We have an app that enumerates users in an Active Directory and puts the records in a Report control.  There can be any number of objects from 10 to anything.  We are currently testing for load with an AD with 250,000 users in it.<br /><br />Normally we limit the number of records to display, but allow the user to show all.  So, I'm running into trouble when adding all 250,000 records to the control.<br /><br />I'm not using virtual mode.<br /><br />If I add all records, then call populate, everything is fine (except see nothing for a long time), and memory is released when I call ResetContent.<br /><br />However if I call Populate while adding records, memory is then not released.<br /><br />I tried several methods<br /><br />1. calling populate on each add.  This resulted in 0 memory freed when I call ResetContent, and furthermore 0 memory freed when I even delete the control itself!!!  So this is a huge leak.<br /><br />2. Calling populate for every N records.  This results in a leak, but there is a small amount of memory returned when ResetContent is called.  So this is still a large leak.<br /><br />I really need all memory to be freed, since this control is in a DLL which can be unloaded, but uses a shared heap, so the memory will leak if it's not returned.<br /><br />Anything I can do?  I'm reluctant to go virtual, since I need sorting and grouping.<br /><br />What would be really great would be ability for records to be added and no populate call required (e.g. it adds and draws, optimised for high rate of inserts).<br /><br />Also, there are horrible things happening in AddRecordEx.  If you call AddRecordEx with NULL for parent, and -1 for other params, it iterates all items for no purpose.  This makes it impossibly slow.<br /><br /><br /><br />]]>
   </description>
   <pubDate>Wed, 17 Feb 2010 16:14:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16217&amp;PID=56871&amp;title=mem-leak-relating-to-populate-call#56871</guid>
  </item> 
 </channel>
</rss>