<?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 : CXTPChartSeriesPoint</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : CXTPChartSeriesPoint]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 19:07:15 +0000</pubDate>
  <lastBuildDate>Mon, 25 Nov 2019 04:01:18 +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=23923</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[CXTPChartSeriesPoint : Hello,I&amp;#039;ve checked 15.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23923&amp;PID=77540&amp;title=cxtpchartseriespoint#77540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23923<br /><strong>Posted:</strong> 25 November 2019 at 4:01am<br /><br /><div>Hello,</div><div><br></div><div>I've checked 15.3.1 and 19.1 versions and any problem has not found. <br>If I to call GlobalMemoryStatusEx function in OnInitialUpdate up to initialization, I've got about the same result what after CollectionRemoveAll function call. <br></div><div>Thus I think CollectionRemoveAll function call has no effect on MEMORYSTATUSEX::ullAvailVirtual.</div><div><br></div><div>Regards,</div><div>Artem Gontarenko<br></div>]]>
   </description>
   <pubDate>Mon, 25 Nov 2019 04:01:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23923&amp;PID=77540&amp;title=cxtpchartseriespoint#77540</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPChartSeriesPoint : Hi,I am facing the following problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23923&amp;PID=77536&amp;title=cxtpchartseriespoint#77536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9380">kunishima</a><br /><strong>Subject:</strong> 23923<br /><strong>Posted:</strong> 17 November 2019 at 9:06pm<br /><br />Hi,<div><br></div><div>I am facing the following problem related to memory allocation and deallocation:</div><div><br></div><div><img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" />Xtreme ToolkitPro v15.3.1</div><div><br></div><div>I have allocated a number of CXTPChartSeriesPoint instances on the chart using CXTPChartFastLineSeriesStyle.</div><div>After processing, I have called the RemoveAll() function for the class CXTPChartSeriesCollection.</div><div>I am expecting that the memory allocated earlier will be deallocated and the free space in the user space (the amount of memory available to the process) will recover after calling RemoveAll() function, but it does not.</div><div>Eventually, the process runs out of memory.</div><div><br></div><div>Could anyone please help me with this issue?</div><div><br></div><div>Here my code:</div><div>void CFastLineView::AddPoint()</div><div>{</div><div><span style="white-space:pre">	</span>CXTPChartContent* pContent = m_wndChartControl.GetContent();</div><div><span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span>CXTPChartSeriesCollection* pCollection = pContent-&gt;GetSeries();</div><div><br></div><div><span style="white-space:pre">	</span>int nCount;</div><div><span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span>if (pCollection)</div><div><span style="white-space:pre">	</span>{</div><div><span style="white-space:pre">		</span>for (int s = 0; s &lt; pCollection-&gt;GetCount(); s++)</div><div><span style="white-space:pre">		</span>{</div><div><span style="white-space:pre">			</span>CXTPChartSeries* pSeries = pCollection-&gt;GetAt(s);</div><div><span style="white-space:pre">			</span>if (pSeries)</div><div><span style="white-space:pre">			</span>{</div><div><span style="white-space:pre">				</span>int nValue = 50;</div><div><br></div><div><span style="white-space:pre">				</span>nCount = pSeries-&gt;GetPoints()-&gt;GetCount();</div><div><span style="white-space:pre">				</span></div><div><span style="white-space:pre">				</span>if (nCount)</div><div><span style="white-space:pre">					</span>nValue = (int)pSeries-&gt;GetPoints()-&gt;GetAt(nCount - 1)-&gt;GetValue(0);</div><div><span style="white-space:pre">				</span></div><div><span style="white-space:pre">				</span>nValue = nValue + (rand() % 20) - 10;</div><div><span style="white-space:pre">				</span></div><div><span style="white-space:pre">				</span>if (nValue &lt; 0) nValue = 0;</div><div><span style="white-space:pre">				</span>if (nValue &gt; 100) nValue = 100;</div><div><span style="white-space:pre">				</span></div><div><span style="white-space:pre">				</span>pSeries-&gt;GetPoints()-&gt;Add(new CXTPChartSeriesPoint(nCount, nValue));</div><div><br></div><div><span style="white-space:pre">			</span>}</div><div><span style="white-space:pre">		</span>}</div><div><span style="white-space:pre">	</span>}</div><div><br></div><div><span style="white-space:pre">	</span>CXTPChartDiagram2D* pDiagram = DYNAMIC_DOWNCAST(CXTPChartDiagram2D,&nbsp;</div><div><span style="white-space:pre">		</span>m_wndChartControl.GetContent()-&gt;GetPanels()-&gt;GetAt(0));</div><div><span style="white-space:pre">	</span>ASSERT (pDiagram);</div><div><br></div><div><span style="white-space:pre">	</span>if (nCount &gt; 100)</div><div><span style="white-space:pre">	</span>{</div><div><span style="white-space:pre">		</span>CXTPChartAxisRange* pRange = pDiagram-&gt;GetAxisX()-&gt;GetRange();</div><div><br></div><div><span style="white-space:pre">		</span>BOOL bAutoScroll = pRange-&gt;GetViewMaxValue() == pRange-&gt;GetMaxValue();</div><div><br></div><div><span style="white-space:pre">		</span>pRange-&gt;SetMaxValue(nCount);</div><div><br></div><div><span style="white-space:pre">		</span>if (bAutoScroll)</div><div><span style="white-space:pre">		</span>{</div><div><span style="white-space:pre">			</span>double delta = pRange-&gt;GetViewMaxValue() - pRange-&gt;GetViewMinValue();</div><div><br></div><div><span style="white-space:pre">			</span>pRange-&gt;SetViewAutoRange(FALSE);</div><div><span style="white-space:pre">			</span>pRange-&gt;SetViewMaxValue(nCount);</div><div><span style="white-space:pre">			</span>pRange-&gt;SetViewMinValue(nCount - delta);</div><div><span style="white-space:pre">		</span>}</div><div><span style="white-space:pre">	</span>}</div><div>}</div><div><br></div><div><br></div><div>// 1msec Interval</div><div>void CFastLineView::OnTimer(UINT_PTR nIDEvent)</div><div>{</div><div><span style="white-space:pre">	</span>for (int i = 0; i &lt; 1000; i++){</div><div><span style="white-space:pre">		</span>AddPoint();</div><div><span style="white-space:pre">	</span>}</div><div>}</div><div><br></div><div>// Collection, point initialization</div><div>void CFastLineView::CollectionRemoveAll()</div><div>{</div><div><span style="white-space:pre">	</span>CXTPChartContent* pContent = m_wndChartControl.GetContent();</div><div><span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span>CXTPChartSeriesCollection* pCollection = pContent-&gt;GetSeries();</div><div><span style="white-space:pre">	</span>pCollection-&gt;RemoveAll();</div><div>}</div><div><br></div><div>// Event when button is pressed</div><div>void CFastLineView::OnButton()</div><div>{</div><div><span style="white-space:pre">	</span>CString str;</div><div><span style="white-space:pre">	</span>MEMORYSTATUSEX memstat;</div><div><span style="white-space:pre">	</span>memstat.dwLength = sizeof(memstat);</div><div><span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span>if (GlobalMemoryStatusEx(&amp;memstat))</div><div><span style="white-space:pre">	</span>{</div><div><span style="white-space:pre">		</span>str.Format("%dMB", memstat.ullAvailVirtual/(1024*1024));</div><div><span style="white-space:pre">		</span>AfxMessageBox(str);<span style="white-space:pre">											</span>// Example output: 1000MB</div><div><span style="white-space:pre">	</span>}<span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span>CollectionRemoveAll();</div><div><span style="white-space:pre">	</span></div><div><span style="white-space:pre">	</span>if (GlobalMemoryStatusEx(&amp;memstat))</div><div><span style="white-space:pre">	</span>{</div><div><span style="white-space:pre">		</span>str.Format("%dMB", memstat.ullAvailVirtual/(1024*1024));</div><div><span style="white-space:pre">		</span>AfxMessageBox(str);<span style="white-space:pre">											</span>// Example output: 1000MB (memory not recovered)</div><div><span style="white-space:pre">	</span>}<span style="white-space:pre">	</span></div><div>}</div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Sun, 17 Nov 2019 21:06:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23923&amp;PID=77536&amp;title=cxtpchartseriespoint#77536</guid>
  </item> 
 </channel>
</rss>