Delphi Error – W1043 Imagebase $%X is not a multiple of 64k. Rounding down to $%X

Delphi Compiler Error

W1043 Imagebase $%X is not a multiple of 64k. Rounding down to $%X

Reason for the Error & Solution

The identifier for the directive: IMAGEBASE_MULTIPLE

The compiler directive controls the default load address for an application, DLL, or package. The number specified as the imagebase in the directive must be a multiple of 64K (that is, a hex number must have zeros as the last 4 digits), otherwise, it will be rounded down to the nearest multiple, and you will receive this compiler message.

{$WARNINGS ON}
{$WARN IMAGEBASE_MULTIPLE ON}

{$IMAGEBASE $00010042}

begin
end.