Memory Leak GDI+

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Memory Leak GDI+

Post by José Araújo » Tue Aug 03, 2010 9:32 pm

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
Attachments
email-memory-leak-tchart.jpg
print screen of the Application and MM4
email-memory-leak-tchart.jpg (164.99 KiB) Viewed 6291 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Memory Leak GDI+

Post by Yeray » Thu Aug 05, 2010 4:06 pm

Hi Fausto,

Why do you want to remove that line? We added it to fix these memory leaks.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Re: Memory Leak GDI+

Post by José Araújo » Thu Aug 05, 2010 5:25 pm

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?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Memory Leak GDI+

Post by Yeray » Thu Aug 05, 2010 7:41 pm

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Re: Memory Leak GDI+

Post by José Araújo » Thu Aug 12, 2010 1:46 pm

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
Attachments
MEMORY leak_FAUSTO.rar
example in delphi7 with WALLS (transparency 70%) and memory leak on
(29.67 KiB) Downloaded 208 times

José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Re: Memory Leak GDI+

Post by José Araújo » Thu Aug 12, 2010 1:57 pm

In transparency in SERIES I´d found problems too

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Memory Leak GDI+

Post by Yeray » Fri Aug 13, 2010 10:39 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Re: Memory Leak GDI+

Post by José Araújo » Fri Aug 13, 2010 12:29 pm

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;
///////////////////////////////////////////////////////////////////
Attachments
FileTeeChart2010SourceCode PROPERTIES.JPG
properties of the release
FileTeeChart2010SourceCode PROPERTIES.JPG (27.22 KiB) Viewed 6181 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Memory Leak GDI+

Post by Yeray » Fri Aug 13, 2010 4:31 pm

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Re: Memory Leak GDI+

Post by José Araújo » Fri Aug 13, 2010 5:11 pm

Could you re-send me the email? I changed my email because the older was written wrong.
Apologies!!!

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Memory Leak GDI+

Post by Yeray » Fri Aug 13, 2010 5:31 pm

Hi Fausto,

Just done!
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

José Araújo
Newbie
Newbie
Posts: 8
Joined: Fri Jul 09, 2010 12:00 am

Re: Memory Leak GDI+

Post by José Araújo » Mon Aug 16, 2010 12:19 pm

Yeray,

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

Thankful,
Fausto Jr.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Memory Leak GDI+

Post by Yeray » Mon Aug 16, 2010 1:02 pm

Hi Fausto,

I'm glad to hear it! :D
Boas tardes!
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply