Page 1 of 1

TChart 8.02 and BCB6, help!!!

Posted: Fri Feb 08, 2008 5:32 pm
by 10547413
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]

Posted: Tue Feb 12, 2008 10:31 am
by narcis
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!

Posted: Tue Feb 12, 2008 11:50 am
by 10547413
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.

Posted: Tue Feb 12, 2008 11:57 am
by 10547413
narcis wrote:this thread
It is other case.