From: "Vincent Snijders" <[EMAIL PROTECTED]>
Koenraad Lelong schreef:
Hi,
I'm trying to get further with my issue with GTK2 for arm-linux.
I found where the exception 'Invalid Filer Signature' is raised :
in
lresources.pp : procedure TLRSObjectReader.BeginRootComponent;
I added writeln's for Filersignature and Signature and this is the
result :
FilerSignature : 4608084
This is only the first three chars of the signature. I wonder why it
is cut of. Maybe an arm bug?
It is due to unaligned data access. It does not raise exception on
arm-linux, but do not handled properly...
It is needed to use unaligned() keyword.
if Signature <> LongInt(FilerSignature) then
must be fixed to
if Signature <> LongInt({$ifdef
FPC_SUPPORTS_UNALIGNED}unaligned{$endif}(FilerSignature)) then
Yury.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives