When opening a form which contains an inherited TImageList in Delphi (2010 in this case, but it may do it for other versions), the IDE invariably (I can't find any rhyme or rhythm to it) adds the image data again to the inherited form. This then increases the size of the executable. any one know why, and how I can stop it happening? I repeat, the image has not changed.
This is a known issue with TImageList, and there's not much you can do about it except to keep deleting the garbage data again. (BeyondCompare can be very useful here, especially in conjunction with source control.) If you want to see it fixed, please vote for the QC report on it.
What I do is put the imagelist on a data module and then add it to the forms uses clause. The form designer will be able to see the image list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With