An unhandled exception occurred at $0000000100168537:
EAccessViolation: Access violation
$0000000100168537 line 405 of ../../../../../lazarus/fpc/3.0.4/units/x86_64-win64/bgrabitmap/bgratext.pas
$000000010016872E line 534 of ../../../../../lazarus/fpc/3.0.4/units/x86_64-win64/bgrabitmap/bgratext.pas
$000000010016A4C2 line 1074 of ../../../../../lazarus/fpc/3.0.4/units/x86_64-win64/bgrabitmap/bgratext.pas
$000000010016AC59 line 1168 of ../../../../../lazarus/fpc/3.0.4/units/x86_64-win64/bgrabitmap/bgratext.pas
$000000010007E5F2 line 4069 of ../../../../../lazarus/fpc/3.0.4/units/x86_64-win64/bgrabitmap/bgradefaultbitmap.pas
$0000000100037E19 line 1913 of ../../../../../lazarus/fpc/3.0.4/units/x86_64-win64/bgrabitmap/bgracustombitmap.inc
$000000010000185A line 15 of project1.lpr
$0000000100001896
$0000000100013F93
$0000000100014A91
$000000007755571D
$00000000777B385D
When I insert the bgrabitmappack4nogui.lpk into the project, I get compilation error in BGRABitmapTypes.pas line 1165:
const ResourceTypes: array[1..7] of TResourceType = ((ext: 'CUR'; code: RT_GROUP_CURSOR), // this RT... constants are unknown (ext: 'BMP'; code: RT_BITMAP), (ext: 'ICO'; code: RT_GROUP_ICON), (ext: 'DAT'; code: RT_RCDATA), (ext: 'DATA'; code: RT_RCDATA), (ext: 'HTM'; code: RT_HTML), (ext: 'HTML'; code: RT_HTML));
Those constants are defined in BGRAWinresource which is not included here. If I include it, there is another error at the same place:
bgrabitmaptypes.pas(1165,39) Error: Incompatible types: got "ShortInt" expected "PChar"