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

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

The identifier for the $WARN directive: IMAGEBASE_MULTIPLE

The $IMAGEBASE 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.