This one has: memory leak


2005-03-22 08:08:34 AM
kylix0
Hi, I just found keeping call MallMe will run out of memory resource. How
to avoid that? Thanks.
CallMe:
ctrl: TBitBtn
if value = 1 then
begin
ctrl.Glyph := imgOn.Picture.Bitmap;
ctrl.Down := True
end
else
begin
ctrl.Glyph := imgOff.Picture.Bitmap;
ctrl.Down := False;
end;