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.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...