if Logo is freed by the form, then Graphic should be freed. You may want to use assign rather than assignment
Logo.Picture.Graphic.Assign(GIF);
and create the TGifImage seperately


Alister Christie


Ross Levis wrote:
I have a TImage component (Logo) on a form and I'm loading a GIF image from a resource. I'm using the RxGIF library. I have the resource compiled into the EXE successfully and I have it working as follows:
Logo.Picture.Graphic := TGIFImage.Create;
TGIFImage(Logo.Picture.Graphic).LoadFromResourceName(hInstance, 'Logo', 'GIF');
This is working fine, however, I just want to check that the TGIFImage will be freed automatically by the form when the program closes. I presume it will but just checking.
Cheers,
Ross Levis
http://www.stationplaylist.com



------------------------------------------------------------------------

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to