> There is method in my madness. These are global bitmaps and they may or
may
> not be created/used during the course of the program operation. If you try
> to free one that has not been used it makes an error. Maybe it is just a
> non-desired property of this particular TFastBMP component.
There is an annoying issue in Delphi regarding object references and the
Free method
var
A :TBitmap;
begin
// At this point A is nil
A := TBitmap.Create; // A is now not nil because it is pointing to an
object
A.Free; // The object is released but A is now ILLEGALLY pointing into
memory
A := nil; // Doing this after a Free solves the problem.
end;
All objects obey the same basic rules regarding whether they've been created
or destroyed,
the TFastBMP will be no different.
--
Aaron@home
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz