Page 1 of 1

Memory Leak GDI+

Posted: Tue Aug 03, 2010 9:32 pm
by 16556556
I'd removed the line IXORCanvas:=TTeeCanvas3D.Create from InitWindow and put in the Constructor Create and trouble keep on.
What should I do now? Any solve else?

I'd sent a print screen from MM4.

thanks

Re: Memory Leak GDI+

Posted: Thu Aug 05, 2010 4:06 pm
by yeray
Hi Fausto,

Why do you want to remove that line? We added it to fix these memory leaks.

Re: Memory Leak GDI+

Posted: Thu Aug 05, 2010 5:25 pm
by 16556556
I´m using the >>>TeeChart Pro 2010 Full Source Code >>>Version 0.4455.0.0 and like you can see the Memory Leak keep on. Have you see the atachment file (print mm4) wich I sent you?

Re: Memory Leak GDI+

Posted: Thu Aug 05, 2010 7:41 pm
by yeray
Hi Fausto,

You may be doing something different than me. Here is what I'm doing:

Code: Select all

uses Series, TeeGDIPlus;

procedure TForm1.FormCreate(Sender: TObject);
var FGDIPlus: TTeeGDIPlus;
begin
  with Chart1.AddSeries(TBarSeries) as TBarSeries do FillSampleValues();

  FGDIPlus := TTeeGDIPlus.Create(Self);
  FGDIPlus.TeePanel := Chart1;

  ReportMemoryLeaksOnShutdown := True;
end;
Could you please modify the example above so we can reproduce the error here?

Re: Memory Leak GDI+

Posted: Thu Aug 12, 2010 1:46 pm
by 16556556
If you change the transparency of the WALLS you can memory on. In your example you forgot put the GDIPlus (Active = True).
I'd attached other example. I my example you should use the ROTATE TOOL and you can see the memory usage UP and UP UP UP UP.

delphi7

Re: Memory Leak GDI+

Posted: Thu Aug 12, 2010 1:57 pm
by 16556556
In transparency in SERIES I´d found problems too

Re: Memory Leak GDI+

Posted: Fri Aug 13, 2010 10:39 am
by yeray
Hi Fausto,
Fausto Jr. wrote:I my example you should use the ROTATE TOOL and you can see the memory usage UP and UP UP UP UP.
So it's with most probability related with the problem discussed here and here (TV52014993). It has been already fixed for the next maintenance release.
I could reproduce the problem with the latest published version but with the actual sources it seems to work fine.
Fausto Jr. wrote:In transparency in SERIES I´d found problems too
Could you please explain us how can we reproduce it?

Re: Memory Leak GDI+

Posted: Fri Aug 13, 2010 12:29 pm
by 16556556
When the next release will be available? I nedd this urgently.

Here the problem has been reproduced with the code:

///////////////////////////////////////////////////////////////////////////
uses
Series, TeeGDIPlus;

procedure TForm1.FormCreate(Sender: TObject);
var
FGDIPlus: TTeeGDIPlus;
begin
with Chart1.AddSeries(TBarSeries) as TBarSeries do FillSampleValues();

TBarSeries(Chart1.Series[0]).Transparency := 50; // THIS LINE INVOKE MEMORY LEAK (USE ROTATE TOOL TO SEE MEMORY USAGE UP UP...)

FGDIPlus := TTeeGDIPlus.Create(Self);
FGDIPlus.TeePanel := Chart1;
FGDIPlus.Active:=true;
end;
///////////////////////////////////////////////////////////////////

Re: Memory Leak GDI+

Posted: Fri Aug 13, 2010 4:31 pm
by yeray
Hi Fausto,

As you are source code customer, I've sent the actual sources to the mail you have registered in this forums.
Could you please check if they correct the problem?

Re: Memory Leak GDI+

Posted: Fri Aug 13, 2010 5:11 pm
by 16556556
Could you re-send me the email? I changed my email because the older was written wrong.
Apologies!!!

Re: Memory Leak GDI+

Posted: Fri Aug 13, 2010 5:31 pm
by yeray
Hi Fausto,

Just done!

Re: Memory Leak GDI+

Posted: Mon Aug 16, 2010 12:19 pm
by 16556556
Yeray,

Thanks a lot buddy. Now, it's stable. And my boss is very happy. ;)

Thankful,
Fausto Jr.

Re: Memory Leak GDI+

Posted: Mon Aug 16, 2010 1:02 pm
by yeray
Hi Fausto,

I'm glad to hear it! :D
Boas tardes!