<?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 : CRITICAL memoryleak using Databind</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : CRITICAL memoryleak using Databind]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 08:07:46 +0000</pubDate>
  <lastBuildDate>Sat, 16 Oct 2010 03:00:14 +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=17314</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[CRITICAL memoryleak using Databind :   adrien wrote:   We found...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60943&amp;title=critical-memoryleak-using-databind#60943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 16 October 2010 at 3:00am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by adrien" alt="Originally posted by adrien" style="vertical-align: text-bottom;" /> <strong>adrien wrote:</strong><br /><br /><DIV>&nbsp;</DIV><DIV>&#091;...&#093;<BR></DIV><DIV><EM>We found this by writing our own memory tracker, which thunks calls to VirtualAlloc and VirtualFree so we could track (and get stack of allocation) leaks</EM>. &nbsp;</DIV><DIV><BR></DIV><DIV>&#091;...&#093;</DIV><DIV>&nbsp;</DIV><DIV></td></tr></table> </DIV><DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Would you be so kind and&nbsp;share your <strong>"memory tracker application" </strong>?</DIV><DIV>&nbsp;</DIV><DIV>If not,&nbsp;check this @CapoPezzio:&nbsp;<a href="http://www.codeproject.com/KB/threads/ProSysLib3.aspx" target="_blank">http://www.codeproject.com/KB/threads/ProSysLib3.aspx</A></DIV><DIV>and maybe usefull to CodeJock also <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" />&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><strong>To support</strong>: Why don't you reply on this post? C'mon, if this is a bug just say so !!! and if you are convinced that it isn't and "we" are doing something wrong, just say so.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 16 Oct 2010 03:00:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60943&amp;title=critical-memoryleak-using-databind#60943</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : There&amp;#039;s a memory leak in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60891&amp;title=critical-memoryleak-using-databind#60891</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 14 October 2010 at 9:11am<br /><br />There's a memory leak in MSJet40.dll if you update a field in a record of type SQL_LONGVARCHAR.<div><br></div><div>We found this by writing our own memory tracker, which thunks calls to VirtualAlloc and VirtualFree so we could track (and get stack of allocation) leaks. &nbsp;</div><div><br></div><div>Are you perchance accessing an MDB file for your database?</div>]]>
   </description>
   <pubDate>Thu, 14 Oct 2010 09:11:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60891&amp;title=critical-memoryleak-using-databind#60891</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : Hi,I still have got no answer....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60884&amp;title=critical-memoryleak-using-databind#60884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 14 October 2010 at 2:36am<br /><br />Hi,<br>I still have got no answer. Maybe because I only bought a 30 day subscription back in April this year, they dont answer me, I dont know. But the problem is there to see<br>]]>
   </description>
   <pubDate>Thu, 14 Oct 2010 02:36:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60884&amp;title=critical-memoryleak-using-databind#60884</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : Hi, Still no answer? I tried...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60786&amp;title=critical-memoryleak-using-databind#60786</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 10 October 2010 at 10:44am<br /><br /><P>Hi,</P><DIV>Still no answer? I tried with sample from CodeJock site <a href="http://www.codejock.com/downloads/samples/reportc&#111;ntrol.asp" target="_blank">http://www.codejock.com/downloads/samples/reportcontrol.asp</A>&nbsp;and seems same thing. Sometimes memory isn't released (still using TaskManager) adding a few times&nbsp;20.000 records (batch and&nbsp;usual) and after remove all, still few Mb missing. After&nbsp;exiting app these Mb's are released.</DIV><DIV>&nbsp;</DIV><DIV>To support: Can someone explain to us poor VB users how to monitor this properly and why memory isn't released even with Customheap and BatchAllocation? I would be very happy if someone could explain it to us. &nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 10 Oct 2010 10:44:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60786&amp;title=critical-memoryleak-using-databind#60786</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : Thank you for your reply Aaron....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60489&amp;title=critical-memoryleak-using-databind#60489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 27 September 2010 at 4:51am<br /><br />Thank you for your reply Aaron. I have tried with the functions you mentioned, but it didnt help.&nbsp;<a href="uploads/6039/reportc&#111;ntrol_memoryleak-1.zip" target="_blank">uploads/6039/reportcontrol_memoryleak-1.zip</a> . Here is a small example if you want to take a look. This demonstrate my problem. If you know a better way to monitor memory leak than to use the Task Manager, please let&nbsp; me know.<br><br>Found this link where it says: The simplest way to find a memory leak is with the Windows Task Manager. Run the application and monitor Memory Usage and Virtual Memory Size in the Process tab or use the Windows Resource kit. A continuous increase in virtual memory, after the application has allocated all the memory it needs, indicates a memory leak. If it’s a very small and subtle memory leak, it would take some hours to identify, but its well worth the effort.<br><br><a href="http://www.drdobbs.com/184416404" target="_blank">http://www.drdobbs.com/184416404</a><br><br>I have posted to Support today and waiting for an answer<br>]]>
   </description>
   <pubDate>Mon, 27 Sep 2010 04:51:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60489&amp;title=critical-memoryleak-using-databind#60489</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : Hi,  And maybe CJ isn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60465&amp;title=critical-memoryleak-using-databind#60465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 25 September 2010 at 5:05am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>And maybe CJ isn't responsable for this... Maybe checkout Helpfile for methods:</DIV><DIV>&nbsp;</DIV><DIV>FreeBatchExtraData<BR>UseBatchAllocation<BR><strong>UseReportCustomHeap</strong></DIV><DIV>&nbsp;</DIV><DIV>I copy/paste the description from helpfile for <strong>UseReportCustomHeap</strong> in here so you are able to read what I mean. I don't know if it applies to "Databinding feature" as well, better ask support <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV><H4 =dxh4>Description </H4><P>Tells the report control to create its own memory heap instead of letting MFC allocate memory (In standard mode, not virtual).</P><!--DX end --><!--DX start ="Syntax" lang="VB" at="<div =Specific Name=Syntax_VB><H4 =dxh4>$$Syntax$$</H4><P>%%Syntax%%</P></DIV>" --><DIV =Specific Name="Syntax_VB"><H4 =dxh4>Syntax</H4><P><PRE =syntax lang=VB><strong>Public Function <FONT style=": #316ac5" color=#ffffff>UseReportCustomHeap</FONT></strong>()<strong> As <B>Boolean</B></strong></PRE><P></P></DIV><!--DX end --><!--DXMETADATA start type="FilteredItemList" scrap="PARAMETERS_LIST" namespace="parameter" source="Item" filter="" format="<H4 =dxh4>$$ParameterList$$</H4>%%filtereditemlist%%" --><!--DX end --><!--DXMETADATA start type="TaggedComment" source="Item" id="##RETURNS" format="<H4 =dxh4>$$Return_Type$$</H4><P>%%comment%%</P>" --><H4 =dxh4>Return Type</H4><P>Returns <strong>True</strong> if the&nbsp;report control to creates its own memory heap to store report resources.</P><!--DX end --><!--DXMETADATA start type="TaggedComment" source="Item" id="##REMARKS" format="<H4 =dxh4>$$Remarks$$</H4><P>%%comment%%</P>" --><H4 =dxh4>Remarks</H4><P><P>Typically it should be fine to allow MFC to allocate memory, but in some cases if you are working with really large data set that you are removing and loading on a regular basis memory is not released and&nbsp;<strong><FONT style=": #316ac5" color=#ffffff>UseReportCustomHeap</FONT></strong> should be used.&nbsp; <strong><FONT style=": #316ac5" color=#ffffff>UseReportCustomHeap</FONT> </strong>tells the report control to create its own memory heap instead of letting MFC allocate memory.&nbsp; This is only really needed when adding and removing large numbers of rows over and over again.&nbsp; <U><FONT color=#ff0000>The problem is that MFC will allocate memory for the rows created, but it must create a whole page in memory and this page may also have memory for some other processes in windows, not just the report control.&nbsp; So when it comes time to delete the rows the report related memory is marked for deletion, but the page can not be removed as there are other windows processes using it.&nbsp; <strong>This is how MFC works and is not a bug.</strong>&nbsp; This is why after deleting large amounts of records the memory does not appear to get released.</FONT></U>&nbsp; To overcome this short comming of MFC you can use <strong><FONT style=": #316ac5" color=#ffffff>UseReportCustomHeap</FONT> </strong>for the report control to create its own memory heap so that it can release all memory related to the rows in the remove when they are removed.</P><DIV></DIV></DIV><DIV>Read <FONT color=#ff0000>red </FONT>marked text, that's why I said CJ can't do anything about that. Maybe better to&nbsp;write to Bill Gates, I guess he is responsable <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" />&nbsp;There's a sample what uses above methods, try it&nbsp;and check if memory usage increases same way.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 25 Sep 2010 05:05:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60465&amp;title=critical-memoryleak-using-databind#60465</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : Then I will be very interesting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60454&amp;title=critical-memoryleak-using-databind#60454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 24 September 2010 at 11:59am<br /><br />Then I will be very interesting to learn how you monitor memory usage of an application. Refer to my application with reportcontrol and databind, I fill the controll with &gt;100000 records, 20 columns each time. The memory usage goes up with abount 40 MB each time, and I soon reach 1 GB in task manager. Sorry, I just cant sit back, dont think my customeres will either, and say -Everything is ok.<br><br>]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 11:59:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60454&amp;title=critical-memoryleak-using-databind#60454</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : Again, the task managers &amp;#034;memory...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60451&amp;title=critical-memoryleak-using-databind#60451</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 24 September 2010 at 10:26am<br /><br />Again, the task managers "memory usage" doesn't say anything about real memory usage, it shows the process working set.<br><br>For example msdev.exe shows 13 MB memory usage. If I minimize the window it drops to 3 MB.<br><br>]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 10:26:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60451&amp;title=critical-memoryleak-using-databind#60451</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : We are two person in our company...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60448&amp;title=critical-memoryleak-using-databind#60448</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 24 September 2010 at 9:45am<br /><br />We are two person in our company who runs the example on two different computeres and both experience the same. It is the same in our business application, we use the same prosedure to set up the ReportControl. With larger datasets the leak is larger. Wich version are you using?]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 09:45:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60448&amp;title=critical-memoryleak-using-databind#60448</guid>
  </item> 
  <item>
   <title><![CDATA[CRITICAL memoryleak using Databind : The memory usage in the task manager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60447&amp;title=critical-memoryleak-using-databind#60447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 17314<br /><strong>Posted:</strong> 24 September 2010 at 9:30am<br /><br />The memory usage in the task manager doesn't say anything about memory leaks. Also I've just tested the sample and there is no memory leak.<br><br><br>]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 09:30:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17314&amp;PID=60447&amp;title=critical-memoryleak-using-databind#60447</guid>
  </item> 
 </channel>
</rss>