Al

What I would do in this case is to fall back on the trusty double linked
list or some suitable container class (like the old TCollection from BP7)
and then allocate space on the heap for each bitmap as it is loaded. When
you wish to delete one simply remove its pointer from the linked list and
fix up the pointer linkages and free up the allocated heap space. The big
advantage of linked lists is that you are able to manipulate the list very
simply and -quickly- without having to shuffle huge lumps of data around the
place -

Paul

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to