Hi,
I have added PDF export to my list of exported chart format and notice that there seems to be a memory leak with OffsetList - see below. Is it the way I'm using it or do I see OffsetList is not being freed, only cleared in Destroy?
Regards,
Brian
constructor TTeePDFPage.Create;
begin
inherited Create;
IObjCount := 0;
FChartObject := TPDFChartObject.Create;
OffsetList := TStringList.Create;
end;
destructor TTeePDFPage.Destroy;
begin
FChartObject.Free;
OffsetList.Clear;
inherited;
end;
Teechart memory leak when writing PDF?
Hi Brian,
could you please show me how can I reproduce the problem ?
could you please show me how can I reproduce the problem ?
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Pep,Pep wrote:Hi Brian,
could you please show me how can I reproduce the problem ?
Sorry to have taken so long to reply. I dont have a clean and simple chart to give you to demo the problem, but am I being naieve? Surely OffsetList is never Free'd anywhere? I entered OffsetList.Free in Destroy and the problem goes away fine.
Does this help?
Regards,
Brian
Hi Brian,
yes, this could be the cause, I'll review and change in the sources.
Thanks!.
yes, this could be the cause, I'll review and change in the sources.
Thanks!.
Pep Jorge
http://support.steema.com
http://support.steema.com