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 X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...