LazReport crash
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
See issue #22144 (closed)
The exe is getting out of control (somehow avoiding a crash) leading to a call to exit(255)
This is caused by components\lazreport\source\lr_class.pas
procedure TfrPictureView.GetBlob(b: TfrTField);
AGraphic is never initialized to nil.
So this code fails:
if assigned(AGraphic) then
AGraphic.Free;
Also "Free" checks for "assigned" so the "if" is not necessary.
A solution would be to set
AGraphic := nil;
before entering the try final
Mantis conversion info:
- Mantis ID: 22145
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 37447 (#974b7ca2)