TChart 8.02 and BCB6, help!!!

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
avnalobin
Newbie
Newbie
Posts: 3
Joined: Fri Nov 16, 2007 12:00 am
Contact:

TChart 8.02 and BCB6, help!!!

Post by avnalobin » Fri Feb 08, 2008 5:32 pm

Gif-files are not display in load picture master in BCB6 Professional IDE. TGIFImage class register from teechart8 component so this module is used for gif images.

Application crash due to incorrect work GIFImage.pas module (only animated gif?)! Application is simply breaked by Windows in Runtume. In Debugger I see exceptions ... In one case gif-file is displayed normal in other case same gif-file is reason of application crash (abnormal termination).
Debugger stop at this Access Violation string
Gifimage::TGIFPainter::DoPaint:
00441BA2 8B402C mov eax,[eax+0x2c]

What is the hell??? In BCB5 with TeeChart5.02 all this gif-files are animated absolutly correctly! Help!



Following Sorce Code is always raise exception for big application. For small application exception always raise if I go step by step in debugger:
MyBitmap->Canvas->StretchDraw(Rect,Picture->Graphic);//ps
where
Graphics::TBitmap *MyBitmap;
TPicture *Picture;
TRect Rect=TRect(0,0,MyBitmap->Width,MyBitmap->Height);
Picture->Graphic is TGIFImage type

ps: Exception don't instantly raise. Exception occur when function (containing this code) ends.
TeeImage8C6.@Gifimage@TGIFPainter@DoPaintFrame$qqrv
00335D68 8B402C mov eax,[eax+0x2c]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 12, 2008 10:31 am

Hi avnalobin,

It could be possible that your BCB is trying to use TeeChart's GifImage unit instead of BCB's. You should check that BCB paths are above TeeChart's at the Include and Libray path lists at Project->Options->Directories/Conditionals.

You may also be interested in reading this thread for more information on gif units compatibility.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

avnalobin
Newbie
Newbie
Posts: 3
Joined: Fri Nov 16, 2007 12:00 am
Contact:

Post by avnalobin » Tue Feb 12, 2008 11:50 am

narcis wrote:Hi avnalobin,
It could be possible that your BCB is trying to use TeeChart's GifImage unit instead of BCB's.
BCB don't support gif-file by default. VCL Source code of Graphics.pas module where supported graphic types are:
constructor TFileFormatsList.Create;
begin
inherited Create;
Add('wmf', SVMetafiles, 0, TMetafile);
Add('emf', SVEnhMetafiles, 0, TMetafile);
Add('ico', SVIcons, 0, TIcon);
Add('bmp', SVBitmaps, 0, TBitmap);
end;

I use gif-files over TGIFImage class from TChart8! I had to work earlier with TGIFImage class from TChart5 on BCB5, it work well.
You should check that BCB paths are above TeeChart's at the Include and Libray path lists at Project->Options->Directories/Conditionals.
all correct.

avnalobin
Newbie
Newbie
Posts: 3
Joined: Fri Nov 16, 2007 12:00 am
Contact:

Post by avnalobin » Tue Feb 12, 2008 11:57 am

narcis wrote:this thread
It is other case.

Post Reply