TGIFImage and Clear()
Posted: Tue Jun 20, 2006 7:47 pm
Hello. I have some problems with TRichView and TGIFImage;
I'm using copy creator of TGIFImage becouse I don't want to load image from the disk each time. It's work fine until I call TRichView->Clear() then I have errors in TGIFImage. SOMETIMES when i call Clear (and after it Format) is OK but when I want to insert some text or images after it there errors anyway.
If I load image from the disk each time (comments in code) no errors when Clear() calls.
Why I have that errors (EAccesViolation) and how to solve this?
Thanks, Jacek.
Code: Select all
TGIFImage* getimg = new TGIFImage (*mainfrm->Emoty->GetEmotiokon(img));
//TGIFImage* getimg = new TGIFImage ();
//getimg->LoadFromFile("baby.gif");
if(getimg)
{
RichView->AddPictureExTag(img, getimg, -1, rvvaBaseline, 0);
}
If I load image from the disk each time (comments in code) no errors when Clear() calls.
Why I have that errors (EAccesViolation) and how to solve this?
Thanks, Jacek.