Subject Invalid pointer when exiting IBO application
Author Steve Sinclair
I have a strange one where exiting an application biult with IBO
causes an invalid pointer on trying to free the images associated with
the update bar. It's always the second form last object in the
stringlist that has an invlaid reference. I've got around it doing
the following but I don't understand how the image object for the
refresh button is being freed leaving a dangling pointer to it. Has
anyone else encountered this?

finalization
while UB_Images.count > 0 do
begin
try
TBitmap( UB_Images.Objects[0] ).Free;
except
UB_Images.Objects[0] := nil;
{ TODO -cHigh : Invalid pointer when trying to free always
UPD_BTN_RFRSH_FILT (2) }
end;
UB_Images.Delete( 0 );
end;
UB_Images.Free;
UB_Images := nil;