Mattias Gaertner wrote:
for Delphi compatibility.

TImageList.Add used AddDirect, that means, the bitmap was added to the
imagelist.
The Delphi TImageList adds only the content to the list.
This has been changed. The LCL TImageList now adds copies. You have to free
now your added images or better: Use AddDirect instead.

Please be aware that when you use AddDirect the imagelist is responsible for freeing the image. This means that the image may be freed after it is added, so you cannot refer toit anymore once added. It may work now, but maybe not for future implementations.


Marc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to