![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Surface series memory leak | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | narcís calvet <narcis> |
| Component: | Series | Assignee: | 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 | ||
ReportMemoryLeaksOnShutdown=true is not reporting any leak when the program is finished, so it must be some allocation that is done at repaint time. 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);
}
|
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.