[Lazarus] EXC_BAD_ACCESS, Could not access memory
Roland Turcan
konf at rotursoft.sk
Fri Apr 24 16:23:34 CEST 2009
Hello Dmitry,
<<< 24.4.2009 16:17 - dmitry boyarintsev "skalogryz.lists at gmail.com" >>>
>> Stream.Read (HeaderLen, SIZEOF (HeaderLen));
>>
>> where information header's length is stored into binary.
db> HeaderLen is integer, right?
db> have you checked HeaderLen being large that sizeof(TSomeHeader)
Of course, that I know now that the problem is, that the binary which
is parsed contains bigger size that size if Header is.
db> it's possible, especiialy for Mac files, because of PowerPC and some
db> structures may use Big-endian byte order, rather than Intel
db> (little-endian)
This I know, but are there other differences? I mean sizes of
datatypes between Win&Linux and Mac (intel/ppc)?
--
Best regards, TRoland
http://www.rotursoft.sk
http://exekutor.rotursoft.sk
More information about the Lazarus
mailing list