<?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 : CXTPTabControl Memory Problem !!!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPTabControl Memory Problem !!!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 11:40:10 +0000</pubDate>
  <lastBuildDate>Thu, 11 Jul 2013 01:14:29 +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=21776</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[CXTPTabControl Memory Problem !!! : And even in the version (Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21776&amp;PID=71351&amp;title=cxtptabcontrol-memory-problem#71351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2550">shanmuganathan</a><br /><strong>Subject:</strong> 21776<br /><strong>Posted:</strong> 11 July 2013 at 1:14am<br /><br /><div><span style="line-height: 1.4;">And even in the version (</span><span style="line-height: 1.4;">Xtreme ToolkitPro v15.0.2)&nbsp;</span><span style="line-height: 1.4;">we use we can see lot of memory leaks are pointed out in the codejock classes.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Just a simple technique from the below link can be used by others to figure out the same.</span></div><div><span style="line-height: 1.4;"><br></span></div><div>http://msdn.microsoft.com/en-us/library/e5ewb1h3(v=vs.80).aspx.</div><div><br></div><div><br></div><div><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Thu, 11 Jul 2013 01:14:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21776&amp;PID=71351&amp;title=cxtptabcontrol-memory-problem#71351</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabControl Memory Problem !!! : Created a SDI application with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21776&amp;PID=71317&amp;title=cxtptabcontrol-memory-problem#71317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2550">shanmuganathan</a><br /><strong>Subject:</strong> 21776<br /><strong>Posted:</strong> 06 July 2013 at 4:57am<br /><br /><div><span style="line-height: 1.4;">Created a SDI application with a XT Splitter control, in which we created a CHtmlView with tabs using "</span>CXTPTabControl" to&nbsp;<span style="line-height: 1.4;">load the web pages.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;"><b>Step 1:</b></span></div><div><span style="line-height: 1.4;">Memory of my application increases whenever we create or add a new tab.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;"><b>Step 2:&nbsp;</b></span></div><div><span style="line-height: 1.4;">Close all the tabs except one tab.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;"><b>Problem:</b></span></div><div><span style="line-height: 1.4;">The memory of application just reduces only 40% compared to the previous memory state.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Please let me know what i am doing wrong (or) what we need to do to bring the memory of my application to a same state even after <b>closing all the tabs</b>.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><b><span style="line-height: 1.4;">====================</span><span style="line-height: 1.4;">&nbsp;CODE</span><span style="line-height: 1.4;">====================</span><span style="line-height: 1.4;">&nbsp;</span></b></div><div><div>void CMyBrowserTabView::OnCloseOtherTabs()</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPTabManagerItem* pItem = NULL;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPTabManagerItem* pCurrentItem = NULL;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>//m_XTPTabControl is object of CXTPTabControl</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if( m_XTPTabControl.GetSafeHwnd() )</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>pCurrentItem = m_XTPTabControl.GetSelectedItem();</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPTabManagerItem* pItem = NULL;</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>HWND hWnd = NULL;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>for(int iter = m_XTPTabControl.GetItemCount()-2; iter&gt;=0; iter-- )</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>pItem = m_XTPTabControl.GetItem(iter);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">			</span>if( pItem != pCurrentItem )</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>CMYBrowserView *pView = NULL;</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>pView = (CMYBrowserView*)CWnd::FromHandle(pItem-&gt;GetHandle());</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">				</span>if(pView)</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">					</span>pView-&gt;Stop();<span ="Apple-tab-span" style="white-space:pre">		</span></div><div><span ="Apple-tab-span" style="white-space:pre">					</span>pItem-&gt;Remove();<span ="Apple-tab-span" style="white-space:pre">					</span></div><div><span ="Apple-tab-span" style="white-space:pre">					</span>pView-&gt;SetTabItem(NULL);<span ="Apple-tab-span" style="white-space:pre">			</span></div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">					</span>delete pView;</div><div><span ="Apple-tab-span" style="white-space:pre">					</span>pView = NULL;<span ="Apple-tab-span" style="white-space:pre">			</span></div><div><span ="Apple-tab-span" style="white-space:pre">				</span>}</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>}</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>}</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div>}</div></div><div><b><span style="line-height: 1.4;">====================</span><span style="line-height: 1.4;">&nbsp;Version &nbsp;Info</span><span style="line-height: 1.4;">===================</span></b></div><div><span style="line-height: 1.4;">Xtreme ToolkitPro v15.0.2</span></div><div>Visual Studio 2008</div><div>Windows 8 OS</div><div><br></div><div>Thanks In Advance.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Sat, 06 Jul 2013 04:57:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21776&amp;PID=71317&amp;title=cxtptabcontrol-memory-problem#71317</guid>
  </item> 
 </channel>
</rss>