Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 611

Summary: Surface series memory leak
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: major CC: david
Priority: High    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14705
Chart Series: Surface 3D Delphi / C++ Builder RAD IDE Version:
Attachments: C++ Builder test project

Description narcís calvet 2014-02-28 06:27:40 EST
Created attachment 105 [details]
C++ Builder test project

I found a memory leak in the Surface series, compile test1 program attached and after start check memory at the TaskManager.

I've just checked with the GDI rendering, the bug also exists with the same memory leaking rate. By the way, this bug exists only in the latest TeeChart version (2014.10), previous version works fine: For this reason I am now using the TeeChart November 2013 version.
Comment 1 david berneda 2014-02-28 06:51:39 EST
ReportMemoryLeaksOnShutdown=true is not reporting any leak when the program is finished, so it must be some allocation that is done at repaint time.
Comment 2 david berneda 2014-02-28 07:05:05 EST
Loop accessing GridIndex should start at 1.
When using 0, values aren't found so Value[0,z] and Value[x,0] will add new points to the Series (and so the apparent leak).

Correct code is:

void __fastcall TForm4::Timer1Timer(TObject *Sender)
{
  for(int x = 1; x <= 128; ++x)
  for(int z = 1; z <= 128; ++z)
    Series1->Value[x][z] = random(512);
}